NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm new to the API, and am having a hard time going through the API documentation.

I am using browser JavaScript to get the geolocation (latitude and longitude), and would like to display the current neighbourhood/city based on the lat and long data. For example, having the lat and lon of 43.653225, -79.383186 would result in Toronto.

Is there a specific API GET request I can make? (i.e. https://api.openstreetmap.org/api/0.6/lat=${lat}&long=${lon}...

Any help would be deeply appreciated. Thank you.

asked 27 Nov '19, 15:50

SamSverkoCurate's gravatar image

SamSverkoCurate
26113
accept rate: 0%


permanent link

answered 27 Nov '19, 16:06

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

This is perfect! Thank you :)

(27 Nov '19, 16:15) SamSverkoCurate

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×290
×60
×44
×10

question asked: 27 Nov '19, 15:50

question was seen: 4,464 times

last updated: 27 Nov '19, 16:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum