none
How to get the nearby fuel stations of current location using bing maps in wp 8.1 RRS feed

  • Question

  • I am working with an windows phone 8.1 application. I am new to bing maps. How to get the near by fuel stations from our current location.

    Is it possible to get the fuel stations with the help of below classes

    How to insert MapLocationFinder query.

    With the help of MapLocationFinder can I get  the locations of the particular fuel stations. 


    • Moved by Barry Wang Monday, October 19, 2015 2:25 AM Bing Map related
    Friday, October 16, 2015 6:44 AM

Answers

  • The MapLocationFinder class is meant for geocoding addresses and places (finding coordinates for single locations) and not for doing generic point of interest searches. If you want to do a nearby search for gas stations you will need to use the Bing Spatial Data Services and the NAVTEQ NA or NAVTEQEU data sources depending on which area you want to cover (North America or Europe). https://msdn.microsoft.com/en-us/library/hh478192.aspx

    I wrote a free ebook on creating spatial apps for Windows 8. A lot of the code can easily be ported to windows Phone 8.1. Chapter 7 shows how to use the spatial Data Services. You can download a copy of the book here: https://rbrundritt.wordpress.com/my-book/


    http://rbrundritt.wordpress.com

    Monday, October 19, 2015 5:17 PM

All replies

  • In windows phone 8.1 how to get the nearby places such as restaurants, hotels, etc with map control from current location. It is done with the help of LaunchUriAsync query. But when we use this query it redirects to phone map. How to implement nearby location with MapControl. In silverlight applications we can use BingMapsTask. How to do this in windows phone Winrt apps.

    Please help me


    • Edited by Barry Wang Thursday, October 22, 2015 10:20 AM Edit title
    • Merged by Barry Wang Thursday, October 22, 2015 10:46 AM The same topic
    Sunday, October 18, 2015 9:25 AM
  • Hello Sandeep_1993,

    Bing Maps forum is better for this kind of issue. I'll move this case for you.

    Best regards,

    Barry


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 19, 2015 2:25 AM
  • @Sandeep_1993,

    It seems the default mapcontrol in WinRT does not provide us this API for query  restaurants, hotels.

    But I have found some related things from here:

    Perform geocoding

    "Convert an address or a place name to a geographic location (geocoding) by calling one of the overloads of the FindLocationsAsync method of the MapLocationFinder class. " 

    Please check if that is the thing that you want to add in your code.

    Best regards,

    Barry


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 19, 2015 12:29 PM
  • The MapLocationFinder class is meant for geocoding addresses and places (finding coordinates for single locations) and not for doing generic point of interest searches. If you want to do a nearby search for gas stations you will need to use the Bing Spatial Data Services and the NAVTEQ NA or NAVTEQEU data sources depending on which area you want to cover (North America or Europe). https://msdn.microsoft.com/en-us/library/hh478192.aspx

    I wrote a free ebook on creating spatial apps for Windows 8. A lot of the code can easily be ported to windows Phone 8.1. Chapter 7 shows how to use the spatial Data Services. You can download a copy of the book here: https://rbrundritt.wordpress.com/my-book/


    http://rbrundritt.wordpress.com

    Monday, October 19, 2015 5:17 PM
  • You can use the new Maps API in Windows Phone 8 to develop map-based apps and to incorporate location and search features. This topic introduces the new map control, map modes, and map views.
    just go to link:
    https://msdn.microsoft.com/en-us/library/windows/apps/jj207045(v=vs.105).aspx 
     
    And for more topics, visit the Microsoft Virtual Academy 
    http://www.microsoftvirtualacademy.com/ 
    • Proposed as answer by Ali Bin Saleem Tuesday, October 20, 2015 6:43 PM
    • Unproposed as answer by Ali Bin Saleem Tuesday, October 20, 2015 6:43 PM
    • Proposed as answer by Ali Bin Saleem Tuesday, October 20, 2015 6:43 PM
    Tuesday, October 20, 2015 6:42 PM