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, 15:50

SamSverkoCurate's gravatar image

SamSverkoCurate
262
accept rate: 0%


permanent link

answered 27 Nov, 16:06

mtmail's gravatar image

mtmail
2.8k847
accept rate: 27%

This is perfect! Thank you :)

(27 Nov, 16:15) SamSverkoCurate
Your answer
toggle preview

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:

×240
×47
×32
×8

question asked: 27 Nov, 15:50

question was seen: 76 times

last updated: 27 Nov, 16:15

powered by OSQA