4

Is it possible to get address(Country, City, street, etc) by latitude and longitude? (BingMaps version 7)

Matt
  • 22,721
  • 17
  • 71
  • 112
Yara
  • 4,441
  • 6
  • 42
  • 62

2 Answers2

7

What's you're looking for is reverse geocoding - translating a coordinate into an address (as opposed to regular geocoding, getting coordinates from address information). The BingMaps 7.0 javascript library doesn't support this directly, but you can get this functionality from the Bing Maps REST services, and specifically the Locations service.

Check out both the documentation of the Locations service and the docs of the Javascript library where they provide examples of calling that service from javascript.

Avner Shahar-Kashtan
  • 14,492
  • 3
  • 37
  • 63
2

after all research I have got this query

http://dev.virtualearth.net/REST/v1/Locations/point?includeEntityTypes=entityTypes&includeNeighborhood=includeNeighborhood&include=includeValue&key=BingMapsKey

this query is about to give us address after giving the latitude and longitudes.

read the link https://msdn.microsoft.com/en-us/library/ff701710.aspx

  • 1
    I actually don't know where to put the latitude and longitude values. So, if any body knew please tell me? – shiva modini Jan 03 '16 at 18:21
  • point is a placeholder for latitude & longitude. E.g. https://dev.virtualearth.net/REST/v1/Locations/47.391489, 8.478757?key=mySecretKey – momo Oct 13 '17 at 13:39