Is it possible to launch Huawei Petal Maps with navigation from point A to point B using intent just like in google maps? If yes, how?
Yes, you can use an intent to launch the Petal Map app, and then use navigation functions in the app.
Deep link example:
mapapp://navigation?saddr=xxx&daddr=xxx&language=xx&type=xxx
mapapp://navigation?saddr=home&daddr=company&language=en&type=drive
mapapp://navigation?type=exit
To use this function, you need to set uriString to the following:
"mapapp://navigation?saddr=25.102916,55.165363&daddr=25.164610000000,55.228869000000&language=en&type=drive"
Sample code after modification:
String uriString = "mapapp://navigation?saddr=25.102916,55.165363&daddr=25.164610000000,55.228869000000&language=en&type=drive";
Uri content_url = Uri.parse(uriString);
Intent intent = new Intent(Intent.ACTION_VIEW, content_url);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
For more details, see docs.
As it would seem from this link, India is currently not among the supported regions for Huawei Petal Map. Currently, you would not be able to use it for navigation.
Related
Hey I am using the HERE SDK and we are trying to make it possible to track the position indoor. We have the indoor map set up on the here map inside the app (made in Flutter). Now we want the user to be able to move around and show the position on the map by using beacons. We receive the following information from the beacons
(using flutter-beacon for this https://pub.dev/packages/flutter_beacon):
// Example Output: {"region":{"identifier":"Minew Tech"},"beacons":[{"proximityUUID":"74278BDA-B644-4520-8F0C-720EAF059935","major":256,"minor":30313,"rssi":-99,"accuracy":12.77,"proximity":"far","txPower":-59,"macAddress":"84:EE:03:53:95:D0"},
// {"proximityUUID":"E2C56DB5-DFFB-48D2-B060-D0F5A71096E0","major":0,"minor":0,"rssi":-75,"accuracy":0.28,"proximity":"immediate","txPower":-59,"macAddress":"AC:23:3F:A9:2E:7F"}]}
How can we use this information to update the position of the user on the map ?
Do we need to use this API:
https://developer.here.com/documentation/positioning/api-reference-swagger.html ?
The Indoor Positioning service is not part of the HERE SDK but delivered through a separate SDK that can easily be used together with the HERE SDK. The Indoor Positioning service is not available for self-serve yet but requires the involvement of a HERE representative at this point in time.
Is there a way to programatically select a level in indoor maps using Google Maps Android SDK
Here is what we are trying to achieve:
Android app lists different stores in a particular premises (for which indoor maps are available)
Android app has a feature to locate a particular store on the MAP
Android app to use Maps SDK to put a marker on that particular store and if that store happens to be on level 2 (non default level) choose level 2 programatically
Any help regarding this is appreciated !! Happy to provide any further information that may be required.
You can't get a list of stores but you can programmatically select a floor of the building. Therefore first you have to zoom in to the position LatLgn pos where the building is.
map.moveCamera(pos, 18));
Afterwards you retrieve the focused building and select the level you want
IndoorBuilding building = map.getFocusedBuilding();
if(building != null) {
List<IndoorLevel> levels = building.getLevels();
//active the level you want to display on the map
levels.get(1).activate();
}
Chec this links for more information
https://developers.google.com/android/reference/com/google/android/gms/maps/model/IndoorBuilding
or this
https://developers.google.com/android/reference/com/google/android/gms/maps/model/IndoorLevel
Until iOS6, it was possible to use Google Maps API with optimize waypoints parameter for showing an optimized route between many locations. The route on map was shown on UIWebView or in Safari. With iOS6 everything has changed: Apple Map Kit now uses Apple maps, so its illegal to use Google Maps API in it. Currently, MKMapItem allows to call and pass MKLaunchOptionsDirectionsModeKey. However, currently it allows to use only two locations. Is there any workaround for that?
Their is a open source class files RegexkitLite that use to find path between two places
follow this documentation for implementation.
please go through this it solve your problem.
[
I need to know, is there any apple direction api by which we can get direction detail between two points(coordinates) same as we can do it via google api.
I need to draw route between two points within app. i do not want to open apple map by using new IOS SDK 6 MKMapItem class.
Thanks
Nope, except you can send the user to the Maps app for directions. You can do this by creating an MKDirectionRequest object.
If you want the user to stay in your app, you need to do the routing yourself, or use a different API.
MKDirections
Apple class ref
Tutorial
hello guys i have a UITableCell which has some details like this "550 Ashbury St., San Francisco, CA, 94117".the details are coming from database.now i want that when i click on the cell a new view should be loaded with google map with this address. any idea how to achieve this???
Use iPhone OS 3.0 which includes the MapKit framework using Google Maps. You don't need to do the browser way anymore since with MapKit you can embed your own map in the application.
The way I have done this to create a simple webpage on my server that sets up google maps and contains a javascript function which takes a location as a string argument. This function is responsible for setting up google maps to show the address.
I then load the page inside a UIWebView and I construct javascript which executes my javascript function with the argument, something like:
NSString* js = [NSString stringWithFormat:#"setup('%#')", location];
Then I execute it using:
[googleMapView stringByEvaluatingJavascriptFromString:js];
You'll need to geocode the address, to turn it into GPS coordinates, i.e. latitude and longitude. Google is not the only web service to provide this, but you'll likely use some web service for this purpose.
Once you have your coordinates, you can feed them to the MapKit component in the iPhone 3.0 SDK, which you can read more about at Apple Developer Connection.