0

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%


One Answer:
1
permanent link

answered 27 Nov '19, 16:06

mtmail's gravatar image

mtmail
3.8k1059
accept rate: 30%

This is perfect! Thank you :)

(27 Nov '19, 16:15) SamSverkoCurate

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:

×248
×50
×34
×8

question asked: 27 Nov '19, 15:50

question was seen: 423 times

last updated: 27 Nov '19, 16:15

powered by OSQA