Hybride Mobile App (Phonegap) map offline and routing - android

I'm currently developping a phonegap mobile application and I want to be able to add the functionnalities of a map.
The features I want in this map is :
can be used offline
can be used to routing the user from a point A to a point B
performant solution
Usable on Android 4 minimum
Free solution
Do you know any solution that can be suitable for me? I have looked on internet but nothing is good as I want.
Thanks.

Related

I am developing an Android app with ArcGIS offline map support. For that which one I have to use? MPK or MMPK package? How to download it?

I am developing an Android app with ArcGIS offline map support. To work with an offline map in android what I have to download? MPK or MMPK? By which tool I can generate the corresponding package? Does anyone have previous experience on the same? I am using com.esri.arcgisruntime:arcgis-android:100.7.0 dependancy. The documentation are totally confusing for me. We have already purchased a Development builder starter license too. Any help would be appreciated.
There are two main ways to use a map offline.
Create a Web Map in ArcGIS Online and take that offline. This does not involve an MMPK.
OR: Create a MMPK using ArcGIS Pro (a desktop product for Windows)
I expect you might want to consider option 1?
Create and save a web map in ArcGIS Online.
In the Settings ensure it's enabled for Offline. You should also ensure the layers you're using are offline enabled.
Use the OfflineMapTask to generate and download the offline map.
This is explained here, but you might also find this technical session helpful.
If you need to go the other route of generating an MMPK, you will need ArcGIS Pro.
MPKs are not a format that Runtime supports.

Transfer offline map data to another app?

I am developing android app which is based on offline navigation system the reason behind using offline map is, internet is very expensive on our country. So, I am thinking of Here Map.
My use case is to share downloaded map file into other devices through the wifi direct P2P and load it in the absence of internet connection.
So, my question is:
1. Is it possible to transfer downloaded offline map file from one app to another app.
2. Will it be any litigation issues?
Thanks in advance.
If you have two apps, both using HERE maps the Android SDK already shares the same maps database. There is no need to move the map data.
If you transfer the map data from one device to another that is not documented nor supported. It may lead to some un-forseen issues and will not be supported by the HERE team.

How can I use native iOS/Android maps in Ionic Application?

I'm developing an Ionic app that allows the user to select a point of interest and edit the data. To do so, I need to display a map. I've tried using Google Maps, Leaflet, Bing Maps and they work fine (some are a little bit laggy) but a co-worker warned me that the performance would get worse if I started showing all the markers. (I know that I can use plugins to cluster, but thats not the point).
My supervisor said that it would be better if I used native mobile maps. When the app is launched in Android, the map shown to the user would be the android native map and the same thing for iOS.
Can someone explain if this is even possible? I googled it already but I couldn't find any good alternatives.
Thanks!
I think a way to achieve this is to detect the platform and use specific code for each :
PhoneGap - Detect device type in phonegap
(Ionic is based on phonegap/cordova)
You can also develop a cordova plugin who use differents API from each platform. There is already a cordova plugin for maps, but who only works on ios and android, and only with google map :
https://github.com/mapsplugin/cordova-plugin-googlemaps
Hope this help

Routing Android application

I'm a beginner in an android development so I need help.
I'm working on android application which let user input locations on a map and the application make a routing to these locations based on the traffic and which location is close to another. This application aims to reduce the time of driving. I don't know what are the APIs I need. Can someone help me?
Use Google maps api.
Refer these,
http://javapapers.com/android/draw-path-on-google-maps-android-api/
https://developers.google.com/maps/documentation/android-api/

Download/cache osmdroid maps programmatically from Android app

Is it possible to programatically from an Android app to export maptiles from osm?
Or to force a specific area to be cached?
I am trying to create an app that can cache/download an area of the map programmatically so it can be available offline when needed.
It doesn't have to be osm but from what i've read doing it for google maps would violate theirs terms of service.
If someone could point me in the right direction i would appreciate it.
Thank you for you time.
Mobile Atlas Creator works perfectly, but having similar feature directly integrated in Android app would much simpler for end-users.
There is a thread about this subject in the osmdroid Discussion Group, here:
https://groups.google.com/forum/#!topic/osmdroid/u0SXXzqHg4U
If you want this feature, don't hesitate to "vote" for it in the Discussion Group thread (10 votes requested :-).
You are probably looking for something like Mobile Atlas Creator. But note that even "free" servers don't necessarily allow you to bulk-download tiles. See osm's Tile Usage Policy for example. Alternately, you can download the raw osm data and run your own Tile Server.

Categories

Resources