none
How to map geocordinates RRS feed

  • Question

  • Hey everyone,

    I am working on my senior project for my engineering class. I am making a device that is meant to help track and recover vehicles. I have the back end done to help manage the data from devices but now have to figure out a good way to map the coordinates. Can anyone point me in the direction of a good way to map coordinates in C# forms?

    Thanks in advance!

    Wednesday, March 6, 2019 3:54 PM

Answers

All replies

  • A couple of things that are not mentioned e.g. what device is being used e.g. mobile, desktop??? Do you want to calculate against coordinates or utilize a web service???

    https://docs.microsoft.com/en-us/dotnet/api/system.device.location.geocoordinate?view=netframework-4.7.2

    https://developers.google.com/maps/documentation/geocoding/start#GeocodingRequests


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Wednesday, March 6, 2019 5:39 PM
    Moderator
  • I'm sorry I did forget to mention those details.

    I will be developing the software for desktop devices and preferably will use a web service (e.g. Google Maps, Bing Maps, OpenStreetMaps, etc) to take the data I am getting from a separate device and map it on the software for a user to view. All I'm looking for is any type of API Wrapper or C# base API to help take a set of coordinates of Latitude and Longitude and map them.

    Wednesday, March 6, 2019 6:21 PM
  • Hi NHastings2,

    Thank you for posting here.

    For your question, you could use the API of these Maps to get data.

    Google Map API: https://developers.google.com/maps/documentation/

    Bing Maps: https://www.microsoft.com/en-us/maps/documentation

    OpenStreetMaps: https://wiki.openstreetmap.org/wiki/API

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 7, 2019 6:56 AM
    Moderator
  • If you don't have a method yet to get the geo location, take a look at a C# code sample I have that uses GeoCoordinateWatcher class to do this. The catch is the Windows computer needs a sensor.

    As for API for mapping, Wendy has provided those for you.


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Thursday, March 7, 2019 11:39 AM
    Moderator
  • You can use a WebBrowser and navigate to lat/long, like (Eiffel Tower for example) :

    http://maps.google.com/maps/@48.85837,2.2922923,17z

    Thursday, March 7, 2019 12:49 PM