none
Need help for simple Geocoding available Offline...

    Question

  • First of all I apologize for posting here, but I didnt' find a suitable Forum category for my question.

    Anyway, this is related to a Windows Forms .NET Application I want to create soon.

    My need / question is very simple : 
    I need to build a local "Street Map", which must be available offline on a portable pc not connected to internet.

    For that reason I want to build a simple database ( maybe just an xml file ) that contains all streets and squares within a particular town. 

    The resulting file should be a list like this :

    Street A - Lat / Lon
    Street B - Lat / Lon
    Square C - Lat / Lon
    ... - ...

    I just need a single Lat / Lon position for each street or square. 

    Which way should I use ? 
    Where could I find these data ?

    I'm starting from something like this :
    https://planet.openstreetmap.org/

    but these files are too heavy and contain too many informations.

    Thanks for any useful suggestion.

    Wednesday, November 7, 2018 2:54 PM

Answers

  • If you want to build an application that displays maps, can do geocoding and routing all offline this is possible using the map control built into Windows 10.

    You don't need to build your own database of streets - that would be a lot of effort finding sources and keeping them up-to-date. Bing maps already has street level maps for most areas in the world that you can use directly.

    For getting started developing an application using the Windows UWP map control, see this article:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/

    For details on how to programmatically download maps for offline use, see this:

    https://docs.microsoft.com/en-us/uwp/api/windows.services.maps.offlinemaps

    For geocoding offline, the API to use is this:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/geocoding

    I wouldn't recommend building a Windows Forms app as that is a really old technology. It will be far easier and you'll get better support building a XAML application, but if WinForms is a requirement for your project, you can still embed the UWP map control in a Windows forms app using the new XAML bridge technology.

    • Marked as answer by IoTGirlOwner Thursday, November 8, 2018 6:41 PM
    Thursday, November 8, 2018 6:34 PM
    Moderator

All replies

  • Windows 10 lets you download maps offline.  Please see https://www.laptopmag.com/articles/how-to-offline-maps-windows-10

    You can save places in the Windows 10 App that you can use when the Map is off line.

    Thursday, November 8, 2018 1:20 AM
    Owner
  • Windows 10 lets you download maps offline.  Please see https://www.laptopmag.com/articles/how-to-offline-maps-windows-10

    You can save places in the Windows 10 App that you can use when the Map is off line.

    Thanks for attention.

    I have done a test download, but I can't see these files. Windows tells the location is C:\, but WHERE these files are ? I need at least an xml file containing places coordinates and I can't find it.

    As said in my first post I need to build my own xml streets file for my application.
    I don't need Windows 10 Maps App.

    Thursday, November 8, 2018 10:20 AM
  • Hi Marco,

    Bing Maps is an online service only the Microsoft Map in Windows 10 has the off-line map capability.

    Sincerely,

    IoTGirl

    Thursday, November 8, 2018 4:48 PM
    Owner
  • If you want to build an application that displays maps, can do geocoding and routing all offline this is possible using the map control built into Windows 10.

    You don't need to build your own database of streets - that would be a lot of effort finding sources and keeping them up-to-date. Bing maps already has street level maps for most areas in the world that you can use directly.

    For getting started developing an application using the Windows UWP map control, see this article:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/

    For details on how to programmatically download maps for offline use, see this:

    https://docs.microsoft.com/en-us/uwp/api/windows.services.maps.offlinemaps

    For geocoding offline, the API to use is this:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/geocoding

    I wouldn't recommend building a Windows Forms app as that is a really old technology. It will be far easier and you'll get better support building a XAML application, but if WinForms is a requirement for your project, you can still embed the UWP map control in a Windows forms app using the new XAML bridge technology.

    • Marked as answer by IoTGirlOwner Thursday, November 8, 2018 6:41 PM
    Thursday, November 8, 2018 6:34 PM
    Moderator
  • If you want to build an application that displays maps, can do geocoding and routing all offline this is possible using the map control built into Windows 10.

    You don't need to build your own database of streets - that would be a lot of effort finding sources and keeping them up-to-date. Bing maps already has street level maps for most areas in the world that you can use directly.

    For getting started developing an application using the Windows UWP map control, see this article:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/

    For details on how to programmatically download maps for offline use, see this:

    https://docs.microsoft.com/en-us/uwp/api/windows.services.maps.offlinemaps

    For geocoding offline, the API to use is this:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/geocoding

    I wouldn't recommend building a Windows Forms app as that is a really old technology. It will be far easier and you'll get better support building a XAML application, but if WinForms is a requirement for your project, you can still embed the UWP map control in a Windows forms app using the new XAML bridge technology.

    Thank You for attention.

    I have to deal with Windows Forms Application.

    I can't embed other Map Controls. I use my own control, a GMap.NET MapControl.
    In fact, I was simply asking a way to get an xml file containing a list of streets, each with its coordinates.
    So the user searches the street name in a list, and gets the coordinates, and the controls shows the location.
    Very simple.

    Finally, these answers are all related to Windows 10, but it must run also on Windows 7, even Windows XP.

    So, good answer, but I wont' be able to use it, I'm afraid...

    Monday, November 12, 2018 8:32 AM