none
Find cities within range/display route and distance RRS feed

  • Question

  • Dear All,

    my apology in case this is duplicate post however I tried to browse in forum before posting this question. I have following requirements. 

    1. Display countries/states/cities(zip codes) across the globe.

    2. Find all cities within a radius radius with respect to a given city. Here resultant cities could be in different countries as well.

    3. Calculate driving distance withing two cities and display it's driving route.

     

    for point#1, I know I can use http://www.geonames.org to get country/states/cities data. But I want all data names are unique and in english (no special characters). In geonames, data are redundant as well as special character issue (e.g. Lohārheri).

     

    for point#2, again geonames can be used but because of special characters, I don't find it suitable.

    As an alternative, I can use calculate distance feature of bing map to find all cities which are in range. But I did not find any such API which takes multiple cities and return their distances. So this could be performance issue.

    for point#3, I need to use bing map API as this feature is not available in geonames . 

     

    My question is can I get solution of all issue using Bing Map API as client is also bit inclined towards Bing Map? If not any other pointer is highly appreciated. The preference is there should be one vendor.

     

    Thanks,

    Devendra

     

     

     


    • Moved by Ricky_Brundritt Friday, March 9, 2012 6:16 PM (From:Bing Maps: Map Control and Web services Development)
    Thursday, June 23, 2011 2:56 PM

Answers

  • For the routing you can use Bing's support for "multi-point" routing to do more than one route in one call. So for example you have start city A and two cities you need to calculate the route to B & C. You can ask bing to route from A->B->A->C and it will return one route from which you can extract A->B and A->C, a bit fiddly but It supports I think 10 points on a route so improves performance
    Brian @ Earthware - UK interactive mapping web developers http://www.earthware.co.uk/blog | http://www.twitter.com/earthware | Windows Live Developer MVP
    Friday, June 24, 2011 6:29 AM
    Moderator

All replies

  • For the routing you can use Bing's support for "multi-point" routing to do more than one route in one call. So for example you have start city A and two cities you need to calculate the route to B & C. You can ask bing to route from A->B->A->C and it will return one route from which you can extract A->B and A->C, a bit fiddly but It supports I think 10 points on a route so improves performance
    Brian @ Earthware - UK interactive mapping web developers http://www.earthware.co.uk/blog | http://www.twitter.com/earthware | Windows Live Developer MVP
    Friday, June 24, 2011 6:29 AM
    Moderator
  • Thanks Brian. Does Bing provide any API to fulfil my first two requirements.

    Regards,

    Devendra

    Sunday, June 26, 2011 1:02 PM
  • 1. Bing doesnt provide any downloadable data for cities states etc, although its geocoder contains them for finding an individual one by name. there are plenty of commercial datasources offering data that "should" be better than geonames just type something like "world city data" into Bing

    2. could be done using the bing maps spatial data services http://msdn.microsoft.com/en-us/library/gg585126.aspx

     


    Brian @ Earthware - UK interactive mapping web developers http://www.earthware.co.uk/blog | http://www.twitter.com/earthware | Windows Live Developer MVP
    • Edited by Ricky_Brundritt Thursday, June 30, 2011 10:31 AM Changing search provider
    • Proposed as answer by Ricky_Brundritt Friday, July 1, 2011 3:56 PM
    Monday, June 27, 2011 6:22 AM
    Moderator
  • Thanks Brian for providing info.

    I believe first we need to make datasource (of cities) for spatial data services as I did not find any such existing data source.

    I have another question about Imagery view of routes. The route map given by Rest API (http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes) is not so good as compare to the view in live Bing Map (http://www.bing.com/maps). Am I missing something here? I have applied zoomLevel attribute but it does not help much.

    Regards,

    Devendra

    Thursday, June 30, 2011 1:20 PM