none
Geocoding by BING REST API does not return result RRS feed

  • Question

  • When I use an Unstructured URL syntax with Rest BING service for this address: Rest BING Request It does not return any coordinates, but if I use BING map directly for the same address BING Map I get a valid location? what is wrong? Thanks

    • Edited by Alireza33 Friday, July 27, 2012 2:34 PM Hide BING_MAPS_KEY
    Thursday, July 26, 2012 3:55 PM

Answers

  • You are actually using the structured format. Use the unstructured format like so: http://dev.virtualearth.net/REST/v1/Locations?q=1011%20J.%20MA.%20ELIZALDE,%20OLIVARFES%20SANTANA,%20AGUASCALIENTES,%20MX&key=YOUR_BING_MAPS_KEY

    Using the above URL returns a valid result.


    http://rbrundritt.wordpress.com

    • Marked as answer by Alireza33 Friday, July 27, 2012 4:24 PM
    Thursday, July 26, 2012 5:43 PM

All replies

  • You are actually using the structured format. Use the unstructured format like so: http://dev.virtualearth.net/REST/v1/Locations?q=1011%20J.%20MA.%20ELIZALDE,%20OLIVARFES%20SANTANA,%20AGUASCALIENTES,%20MX&key=YOUR_BING_MAPS_KEY

    Using the above URL returns a valid result.


    http://rbrundritt.wordpress.com

    • Marked as answer by Alireza33 Friday, July 27, 2012 4:24 PM
    Thursday, July 26, 2012 5:43 PM
  • Thanks for the reply. Based on this link http://msdn.microsoft.com/en-us/library/ff701714.aspx I am using an Unstructured URL. You used also Unstructured URL but based on query http://msdn.microsoft.com/en-us/library/ff701711.aspx  since I am using an address with special character (.) I need to use Unstructured URL and based on Important notes section in the first link, both formats should work, but it seems onlyFind a Location by Query queryis working.

    Friday, July 27, 2012 4:24 PM