none
Bing Maps REST Services - Querying UK motorways and junctions with Locations API RRS feed

  • Question

  • I am currently using the Bing Maps REST Service within an application and the service has struggled with motorways which is often searched for by the application. Is there a way to get the best results for motorways in the UK using the Bing Maps REST service or other services? With some motorways the service is confusing it as the start of a post codes and junctions are not recognised.

    Example:

    http://dev.virtualearth.net/REST/v1/Locations/UK/m40,%20junction%20two,%20uk?output=xml&key=

    Is there a way I can retrieve this information using Bing services?


    Wednesday, October 8, 2014 1:19 PM

Answers

  • You appear to be mixing the structured and unstructured geocoding functionalities which is likely a cause for some of your issues. You also don't provide a culture parameter which means that the service will place more value on US based results. I wrote a blog post with a bunch of tips and tricks when using the REST services here: http://blogs.bing.com/maps/2013/02/14/bing-maps-rest-service-tips-tricks/

    Here is a better formatted version of your query.

    https://dev.virtualearth.net/REST/v1/Locations?q=m40,%20junction%20two,%20uk&output=xml&c=en-GB&key=YOUR_BING_MAPS_KEY

    This still doesn't return the likely result you are looking for, but that is because motorway junction numbers are not supported.

    Doing some testing it does look like the geocoder is having some issues geocoding UK motorways and is mistaking a lot of them as the 3 letter postal code areas in Manchester. This looks like a new issue as I worked on a project a few years ago that focused on motorway geocoding. I've escalated this internally as a bug for investigation.


    http://rbrundritt.wordpress.com

    Wednesday, October 8, 2014 3:29 PM

All replies

  • You appear to be mixing the structured and unstructured geocoding functionalities which is likely a cause for some of your issues. You also don't provide a culture parameter which means that the service will place more value on US based results. I wrote a blog post with a bunch of tips and tricks when using the REST services here: http://blogs.bing.com/maps/2013/02/14/bing-maps-rest-service-tips-tricks/

    Here is a better formatted version of your query.

    https://dev.virtualearth.net/REST/v1/Locations?q=m40,%20junction%20two,%20uk&output=xml&c=en-GB&key=YOUR_BING_MAPS_KEY

    This still doesn't return the likely result you are looking for, but that is because motorway junction numbers are not supported.

    Doing some testing it does look like the geocoder is having some issues geocoding UK motorways and is mistaking a lot of them as the 3 letter postal code areas in Manchester. This looks like a new issue as I worked on a project a few years ago that focused on motorway geocoding. I've escalated this internally as a bug for investigation.


    http://rbrundritt.wordpress.com

    Wednesday, October 8, 2014 3:29 PM
  • Hi Ricky,

    Thank you for you reply, I have actually tried using both the structured and the unstructured formats however the result do not change, I have also used the culture parameter and https://dev.virtualearth.net/REST/v1/Locations/UK/ though this has not helped either. Thank you for escalating this as a bug. Would it be possible to be alerted if and when a fix could be implemented? We would like to be able to search on motorways in the UK as a core part of our application so this is quite important for us and if a solution cannot be found I will need to find an alternative solution for geocoding with motorway names.

    Wednesday, October 8, 2014 3:54 PM