Convert address to latitude and longitude

I have a use case and wonder if there is a api for this.

My user will input a singapore address and i like to get the latitude and longitude . Is there a api to convert address to latitude / longitude for this ?

I was thinking of using the static map with the address provided.

Thanks,
John

Hi john,

Do take a look at this API:

Documentation: https://docs.onemap.sg/#search

Webservice URL:
https://developers.onemap.sg/commonapi/search?searchVal=revenue&returnGeom=Y&getAddrDetails=Y&pageNum=1

<replace "revenue" with your address>

Hi @john,

To add on to @kaicong reply, you may refer to our API documentation (https://docs.onemap.sg/#search) on the use of the provided link.

Thanks @kaicong and @alanzhu for the quick response

I got it :slight_smile:

1 Like