# Mappedin JS location/coordinate on top of a space

**URL:** <https://community.mappedin.com/t/mappedin-js-location-coordinate-on-top-of-a-space/208>\
**Category:** Mappedin JS\
**Created:** [February 3, 2025, 10:59am UTC](https://community.mappedin.com/t/mappedin-js-location-coordinate-on-top-of-a-space/208 "2025-02-03T10:59:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![msohm](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/msohm/32/6_2.png) [@msohm](https://community.mappedin.com/u/msohm)\
**Post date:** [February 10, 2025, 9:20pm UTC](https://community.mappedin.com/t/mappedin-js-location-coordinate-on-top-of-a-space/208/4 "2025-02-10T21:20:58Z")

</div>

We just released an [update to Mappedin JS](https://community.mappedin.com/t/mappedin-js-react-sdk-v6-0-1-beta-26/212) today that may help to solve this.

There are new `.geoJSON` properties for the map data classes, such as [Space.geoJSON](https://docs.mappedin.com/web/v6/latest/classes/Space.html#geojson). These return the geomety of the space in GeoJSON format. You could use this along with [turf/boolean-point-in-polygon](https://www.npmjs.com/package/@turf/boolean-point-in-polygon) to determine if the coordinate is within a space.

---

_[View the full topic](https://community.mappedin.com/t/mappedin-js-location-coordinate-on-top-of-a-space/208)._
