Regarding extents attribute

I believe extents attribute define a rectangular boundary, as in below query.

https://developers.onemap.sg/privateapi/themesvc/retrieveTheme?queryName=kindergartens&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjUsInVzZXJfaWQiOjUsImVtYWlsIjoiY2xvc2VkYXBpdXNlcjFAc2xhLmdvdi5zZyIsImZvcmV2ZXIiOmZhbHNlLCJpc3MiOiJodHRwOlwvXC9kZi5zbWFydGdlby5zZzo4MDgwXC9hcGlcL3YyXC91c2VyXC9zZXNzaW9uIiwiaWF0IjoxNDYwOTYxNTI2LCJleHAiOjE0NjA5ODEzMjYsIm5iZiI6MTQ2MDk2MTUyNiwianRpIjoiMzI2ZjFmNzVmMmQxZGYxODJiNDNmNjgyNWIwMWFmYjEifQ.g7BidyQPfPbS5XzkixvJ6oAk360DsRu0Sym7h2APQhU**&extents=1.291789,%20103.7796402,1.3290461,%20103.8726032**

I would like to know if there is a library existing whereby I can plug in a point latlng, and retrieve an extents [rectangular boundary] of say 500m [from that point]?

an extents can be a polygon too [like the polygon boundary of a planning area]?

thanks

Hi Alvin,

Was terribly busy these few days.

Yes, there is a geospatial library known as Turfjs. You might want to check it out. Currently, it has quite a number of known versions for various languages.

Btw , we are serving out planning area as part of our api.

Thank