Get human readable address using Google maps iOS sdk - ios

I am developing an iOS app which integrates google maps iOS sdk .
In my GMSMapView I have dropped a GMSMarker, I want to set the title of the marker with location name . I have tried GMSAddress, GMSGeocoder and GMSReverseGeocodeResult but I could not get the exact location name. How can get the complete address of the current location.

This post should have what you're after. Basically upgrade to v1.7 and use GMSAddress
The linked post includes a code sample you can use as well.

Related

How to access custom NMAVenue3dVenue created with HERE Venue Map Admin Tool with Here Maps iOS Premium SDK?

Already done:
Step 1:
Create or edit NMAVenue3dVenue with HERE Venue Map Admin Tool
Step 2:
Get App ID, App Code and License ID with the same account that was used to create the custom venue.
Step 3:
Integrate data from step 2 into ios project
Step 4:
Make sure here maps SDK is loading without any errors
Step 5:
Restart Xcode and clean cache
Result:
NMAVenue3dService listener function venueServiceDidInitialize(_ venueService: NMAVenue3dService!, withResult result: NMAVenue3dServiceInitializationStatus) (with result online success) and venueService(_ venueService: NMAVenue3dService!, didGet venue: NMAVenue3dVenue!, with venueInfo: NMAVenue3dVenueInfo!, with status: NMAVenue3dServiceVenueLoadStatus) getting calls but always with an unexpected venue. (The coordinates for this venue are okay)
I was also trying to obtain custom created NMAVenue3dVenue by manually asking NMAVenue3dService for it to find with specific coordinates and radius or unique id. It seems like NMAVenue3DService is not able to find the custom venue.
Please help me to get connection between custom created private or edited public venue and here maps sdk ios.
Thank you
Assuming the custom map being created is a image-based indoor maps , then it would not be available via the Mobile SDK.
Reference Documentation: https://indoor.here.com/#/tools/help-text-2
Custom image-based indoor maps are only meant for testing deployment
and indoor positioning in HERE Indoor Radio Mapper. The image-based
indoor map will not be exposed to applications via HERE Mobile SDK.

Here Maps how to create address suggestions iOS SDK Premium?

I'm developing an iOS app using Here Maps. Current SDK version is 3.1, but I also checked with 3.3.
The app has a text field for searching the address. It is essential to suggest the address for the user of the closest partial search string, like autosuggestion.
Currently, I'm using geocoder request:
NMAGeocodeRequest *request = [[NMAGeocoder sharedGeocoder]
createGeocodeRequestWithQuery:searchText searchRadius:10000
searchCenter:[currentPosition coordinates]];
with current position of the iPhone (checked) and radius 10km.
But in result I'm receiving results from all over the world.
Is there a better way to do it with Here Maps?
You can use NMAAutoSuggestionRequest, it handles this use case.
[1] Text AutoSuggestion Requests User Guide

Google Maps SDK for iOS doesn't display map content

I'm using the current version 1.1.2 of Google Maps SDK for iOS. The map only displays the Google logo, the current location and the added marker. But no map content whatsoever:
I correctly registered the API key:
BOOL result = [GMSServices provideAPIKey:#"<my key>"];
the result is YES and I verified that the bundleIdentifier matches with the API console. I load the GMSMapView from a storyboard and set the camera in my -viewDidLoad:
self.mapView.camera = [GMSCameraPosition cameraWithLatitude:0 longitude:0 zoom:2];
This is logged by GMSMapView:
Failed to make complete framebuffer object 8cd6
Failed to make complete framebuffer object 8cd6
Google Maps SDK for iOS version: 1.1.2.2533
GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 10)
GMSZoomTableQuadTree lacks root zoom table for tile type (mapType: 15)
Any idea what could cause this problem?
Found the solution myself.
I'm using Auto Layout. Apparently, in -viewDidLoad the Auto Layout hasn't yet done its work and my GMSMapView still had a CGRectZero frame. GMSMapView seems to react very picky on a zero frame.
[self.view layoutIfNeeded];
prior to setting the camera solved the problem for me.
This could also be caused by not having the right bundle ID entered under the API key in your Google API Console.
Just in case someone comes here and nothing works...
I was having this problem and got bored so I unzoomed the map and discovered I messed up with the location and my map center was in the middle of a desert!
Map was working just fine.
So try to unzoom, just in case.
If you have included both GoogleMaps.framework and GoogleMapsM4B.framework (Maps for Business) in your XCode project, remove GoogleMapsM4B.framework.
Otherwise you'll need to enable Google Maps Mobile SDK for Work through Enterprise Support portal instead of Google Maps SDK for iOS from Cloud Console.
I also had the same problem.The issue was I used two iOS Api keys in 2 different places in code.Please check whether you have used correct API Key (iOS Key) from google Api console.Use the same key through out your app.

How to integrate new Google map app with ios app

Google Map is now available in Appstore for IOS 6. I have a application which utilises MAPKIT and WebView to show Driving direction using Google webservices.
For showing Route in Native Apple MAP app, i use codes similar to this..
MKMapItem *mapItem = [[MKMapItem alloc]initWithPlacemark:place];
NSDictionary *options = #{
MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving
};
[mapItem openInMapsWithLaunchOptions:options];
I want to show Route to the user in the New Google MaP App installed on user device, embeed its UI within a View in my app.
Do guide me.
Goole have released latest API for IOS 6.0 and up.
For that follow the step below
You have to registered your app and get the keys from Map IOS access.
Refer the following link for further detail
New way to add google maps in iOS 6 app
For displaying the directions within the GoogleMaps app, using the new GoogleMaps URL scheme along the lines of:
comgooglemaps://?saddr=Google+Inc,+8th+Avenue,+New+York,+NY&daddr=John+F.+Kennedy+International+Airport,+Van+Wyck+Expressway,+Jamaica,+New+York&directionsmode=transit
Taken from the documentation should help you. A short browse from there, you will also notice that Google have released an SDK for the new GoogleMaps, with access tokens being rolled out slowly. Doc
seemed to cut off the end of my answer, but #Hi Ren has filled in the end with the link to the documentation to the new SDK.

disabling ipad from creating placemarks on google map

I have a google map that I created with KML:
Here is a link to the map:
http://goo.gl/maps/dkfjU
Here is the complete KML file:
https://dl.dropbox.com/u/94943007/02bb39645a3c9d95afeed5cb9bd5d07c040d8ca8a4ee56b9fb367d38.kml
When browsing this map with my IPAD using safari, for some reason when I tap anywhere on the map, it creates a point there on the map.
How do I disable point creation on the map so that IPAD users are not able to do this?
I checked the link as well and Marcelo seems to be correct. To have a maps with the ability to turn on and off layers you will need to build your own site and perhaps use Javascript and the Google-maps API to build it. Maybe start here: https://developers.google.com/maps/documentation/javascript/tutorial
You cannot disable adding a place mark if you are browsing the map in safari
You can control it if you use map kit iOS API of the iOS SDK.
For importing KML-Data into that SDK, you can use Sample Code from
Apple:
http://developer.apple.com/library/ios/#samplecode/KMLViewer/Introduction/Intro.html
But there is no built-in KML Import in iOS SDK. You can use other
frameworks as mapbox/Simple-KML here
https://github.com/mapbox/Simple-KML
If you want to do this in safari, then you're lost, unless you can manipulate that using JavaScript!!!

Resources