I'm new to both iOS programming & the Google Maps iOS SDK, so apologies if this is a basic question.
I want to include a Google map, in an app and give users the ability to search for various places (restaurants, bars, gyms, etc) within a certain radius of a marker.
I know this is possible using the javascript api, but can it be done using the maps iOS SDK? I have read all of the information here and have searched Stack Overflow & Google but I can't really find anything that gives me any pointers.
Within the documentation, Google say that using a URL Scheme you can launch a native iOS app and pass in parameters for searches, directions etc. Is this what I need to be using, or is that more tailored to a webapp?
Any help, advice, or pointers to tutorials (other than the ones provided by Google) would be massively appreciated.
Cheers
The Google Maps URL Scheme can currently only be used to open the Google Maps app to search for a location or for directions. It can't search for places. Also, if your own app did this, then it would shut down your app and switch to the maps app, which may not be what you want. It will also only work if the user has installed the Google Maps app.
You would probably want to use the Google Places API to make http requests from your native app. You can request a response in either JSON or XML format. Then you'll need to parse the response, and use it to add markers to a GMSMapView using the Google Maps SDK for iOS.
This blog post describes this library which the blog post's author wrote to wrap the Google Places API. You wouldn't need most of this code, but it might give you an idea of where to start. This class is the main one which handles the requests to the places API.
Note that this library uses a third-party JSON parser - SBJsonParser. As of version 5.0 iOS includes a native JSON parser, NSJSONSerialization. So if your app's minimum supported iOS version is 5.0 or higher, you don't need to use a third-party library.
Related
I want to use the Tun by Turn voice navigation feature that on google maps app in my android app, I've searched a lot but couldn't find answer, I've used google maps direction API for creating the path from the current location to the user's destination, it's part of the idea of the application to help the user navigate,
What API should I use ? or is it even possible to do it?
Google Maps API v3 does not provide the voice feature at all. And Google Maps API v3 and Google Maps applications are completely different ones. So if you want to implement the voice navigation, you need to prepare it.
Best to read the terms of service. 10.4 (c) ⅲ might be relevant:
ⅲ. No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; or (b) automatic or autonomous vehicle control.
Fortunately, org.apache.cordova.plugin.tts plugin provides that function for Android.
document.addEventListener("deviceready", function() {
tts.speak("Hello");
});
Please refer to the link:
https://github.com/domaemon/org.apache.cordova.plugin.tts
Hope it helps.
Does the google maps sdk for iOS allow caching for offline use?
Just like the Google Maps app now allow offline interaction, I was thinking if it also aplied to apps created with the latest sdk.
Note: I've been around StackOverflow for sometime now that I know questions must be code related, but since the official page's discussion section forward me here with the tag [google-maps-sdk-ios], well.. here I am and I apologize if it shouldn't be this way.
Thank you.
No, as of SDK 1.8.1, there is no direct support for this for Google Maps.
It is however possible to use a custom tile overlay, which could load tiles from a downloaded cache. It's against the SDK T&C to download Google Map tiles, but you could provide your own tiles from another provider, e.g. OpenStreetMap.
I have to include the google map API in j2me application. I want to change the route and change the center position dynamically. I have searched a lot. Now I am using google static map API but it shows the image statically. I want to show the map dynamically.
Using javascript API v3 shall I implement google map API in j2me. But one of forums I have found we can't use javascript API in j2me application. Please Give clear idea about this why we can't implement in j2me.
I haven't taken a deeper look, but I found these two links when searching Google.
http://www.developer.nokia.com/Community/Wiki/Archived:Google_Static_Maps_API_in_Java_ME
http://www.jappit.com/blog/midmaps-google-maps-java-me-library/
Whereas it is technically possible to use a static mapping API to display an map in Java ME, If you want to dynamically update the map, you would be much better off using a library which uses a tile server, caches your map tiles and overlays objects on top of it.
This should result in a much lower data traffic overhead as explained here. Only use a Map Image API if all you need is a single map image.
The dynamic mapping library I would suggest is Nokia's HERE Maps API for Java ME, as you can tell from the name, the API is specifically designed to work with Java ME devices.
The API is currently bundled with the Nokia Asha SDK 1.0, but despite this, it is in reality a separate independent plugin and has been designed to work with the full range of standard Java ME devices.
A similar Stack Overflow question answered here describes how to download it.
As a notice of affiliation, I should mention in passing that I do work for Nokia.
I am trying to leverage Google Maps Engine as a data store for an iOS app that uses the Google Maps SDK. Has anyone ever done that before? I'm having trouble finding examples or reference material on the internet. I can get data layers to show up in a web page using HTML and JavaScript, and I can see data layers in the native Google Earth App, but I want to show this data in my own custom map app.
Here is a link to Google Maps Engine for reference: http://www.google.com/enterprise/mapsearth/products/mapsengine.html
I believe you will need to get in touch with Google to receive a Maps API. I don't think they just let anyone on the street have it.
http://support.google.com/enterprisehelp/bin/request.py?contact_type=maps_engine&hl=en
The iOS/Android app I am building requires a map component and just wondering what experts here would recommend using?
The app is being developed using pure AS3 and come across MapQuest. I only really need to be able to drop multiple markers and click markers for information. No directions, search etc.
Thanks
You might consider using a StageWebView instance with the HTML version of Google Maps.
You should be able to find helpful articles on the web. Sample: http://www.igorcosta.org/?p=350
Anyway, this might get tricky. :-/
I think Google Maps is still a good idea, but I’m not sure if it will work on mobile:
http://www.gotoandlearn.com/play.php?id=104
Beware that Google Maps API for Flash is deprecated.
Note (form Google Maps API page):
The Google Maps API for Flash has been officially deprecated as of September 2, 2011. The API will continue to work until September 2, 2014. We encourage you to migrate your code to version 3 of the Maps JavaScript API.
If not, you'll probably have to create a native extension.