Adding Polyline to Google Map in Mobile App

I've got a mobile app that uses a Google map. I can successfully retrieve directions from the Google Directions service. I want to overlay the route polyline from the Directions Result onto my Google map. I can't find an example of how to do this with a mobile app - all the examples are for web pages and I'm not quite able to make the translation. Could someone please post some sample code?
Many thanks in advance!

https://itunes.apple.com/us/app/google-maps/id585027354?mt=8
It won't help find your iPhone, however.

Similar Messages

  • After Upgrade to IOS 6.1, find my iPhone's map cannot see the street or city, especially in China, can we change back to google map in this app?

    After Upgrade to IOS 6.1 also with "find my iPhone" app, the map when locate my iphone cannot see the street or city, especially in China, can we change back to google map in this app?
    If the map cannot show details, how can we find my iphone? And it seem Apple just have an good idea for customer only but it is not function, why need to use Apple map in "Find my Iphone" if we all know it is not a good map!
    So stupid Apple!!!!!

    https://itunes.apple.com/us/app/google-maps/id585027354?mt=8
    It won't help find your iPhone, however.

  • Help me in embedding a map for mobile app

    I have built a basic simple iphone app in flash cs5.Now I want to create a new scene in flash cs5 to show this map fully funtional along with markers in a small resolution for mobile app.(iphone)
    link of the map:
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=100795895206195398252.00044490e878 965c7dd91&t=p&om=0&ll=12.340002,77.409668&spn=4.989012,7.404785&source=embed
    Pls help me out in sorting this problem out

    You need to sign up for google maps API here : http://code.google.com/apis/maps/signup.html, get your API key. You need this otherwise it will not work. Thendownload the SDK, from here:http://code.google.com/apis/maps/documentation/flash/ its on the right, on step 2, "SDK"
    the set up flash with the SDK, and then in your components inspector there will be a new folder saying google.
    Drag that component onto the stage. Then add this code: information  will need to be changed to suit your location and API KEY
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.geom.Point;
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    public class googlemap extends Sprite {
    var map:Map = new Map();
    public function googlemap() {
    map.key = "ABQIAAAAF5GHwa7hgxz5etSP-jJVwhSK_rP-_Usta8fEpiVtC50gLzF69hQ6_VK0zgpArekpmdsRCJK2Vnp60A";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    this.addChild(map);
    function onMapReady(event:Event):void {
    map.setCenter(new LatLng(45.436319770227,12.33638048172), 13, MapType.SATELLITE_MAP_TYPE);

  • Why am i unable to find the google maps on the app store?

    im trying to download google maps on my new iphone 5 but it's not letting me! it says that the app is not available in my market PLEASE HELP ME i really need this application!!! why is not available? will it ever be?? my house and most of places around it do not exist on IOS stock maps app

    Well, you have gotten your answer. It is not available in your market. You would need to contact Google with your complaint, as Apple is not the developer of that app.
    Google decides when and where they make their app available.

  • Google maps in UAE App store

    Anyone know when it's going to be available for download?

    As google maps and other free map apps such as Here Maps from Nokia are available in other countries your second sentence doesn't make any sense. Have you asked google why it isn't available there ? If they don't grant Apple a license for the uae then Apple can't have it there.

  • Iphone5 goes to google maps whenever an app needs a map, i'd rather use apple maps. how?

    My iPhone 5, when using an app with location services always revrts to google maps an Id rather use Apple maps. Ho did this happen and/or how can I make it stp?

    It is up to the app developer what map API to use. The apps you have chosen to use Google; I have an app that uses Bing. It is the developer's choice, not Apple's, however.

  • Firefox suddenly loads Google Maps as mobile page

    I have been using Google Maps in FF in Ubuntu on my desktop PC for many years.
    The bookmark is stored as http://maps.google.co.uk/maps & shared with Chromium via Xmarks.
    In the last few days, whenever I use this bookmark in FF, the address bar switches to http://maps.google.co.uk/m/places?oi=nojs#ipd:mode=home and the site is a mess.
    This post describes the same thing exactly & tells me FF must be loading the mobile page:
    http://www.techsupportforum.com/forums/f131/google-maps-loads-the-mobile-page-623890.html
    If I enter the address manually, I get the same result.
    Chromium continues to work as normal.
    I did recently add NoScript to FF but have tried "allowing all this page" with no effect.

    It is possible that the server gets confused by the Ubuntu in the user agent.
    *Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
    You can try to modify the user agent and remove that part.
    *Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
    You can do that by setting the general.useragent.override pref on the about:config page or use this extension:
    *User Agent Switcher: https://addons.mozilla.org/firefox/addon/user-agent-switcher/
    *https://support.mozilla.org/kb/websites-incorrectly-report-firefox-outdated-or-in
    Note that you will have to update the user agent if you update Firefox (Firefox 12has been released)

  • Best practices for adding link to Google Maps

    Does anyone know anything about this? I want to link to several Google maps, but want to make sure I"m doing it the right way.

    http://forums.adobe.com/message/3917965#3917965

  • I have a mobile website and I would like the links to Google Maps, or any Map App, Can I do this with Muse?

    I have a mobile website and I would like the links to Google Maps, or any Map App, Can I do this with Muse?

    Hello,
    Are you talking about placing Google map in Mobile page created in Muse ? If yes you can do this by either using "Google Map Widget" or by placing " Embedded code" created at any map site.
    Here are the detailed steps for the same :
    How to Add a Google Map
    How to add a Google map | Adobe Muse CC tutorials
    Embedding HTMl in Muse
    Adobe Muse Help | Embedding HTML
    Please let me knew if you are willing to do something else.
    Regards
    Vivek

  • Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running google maps app on the phone. Siri cannot seem to get me to a specific address. Where does the problem lie? Thanks.

    Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running Google Maps app on the phone. SIRI cannot seem to get me to a specific address. Where does the problem lie? Also can anyone tell me the hierarchy of use between the Apple Maps, SIRI, and Google maps when the app is on the phone? How do you choose one over the other as the default map usage? Or better still how do you suppress SIRI from using the Apple maps app when requesting a "go to"?
    I have placed an address location into the CONTACTS list and when I ask SIRI to "take me there" it found a TOTALLY different location in the metro area with the same street name. I have included the address, the quadrant, (NE) and the ZIP code into the CONTACTS list. As it turns out, no amount of canceling the trip or relocating the address in the CONTACTS list line would prevent SIRI from taking me to this bogus location. FINALLY I typed in Northeast for NE in the CONTACTS list (NE being the accepted method of defining the USPS location quadrant) , canceled the current map route and it finally found the correct address. This problem would normally not demand such a response from me to have it fixed but the address is one of a hospital in the center of town and this hospital HAS a branch location in a similar part of town (NOT the original address SIRI was trying to take me to). This screw up could be dangerous if not catastrophic to someone who was looking for a hospital location fast and did not know of these two similar locations. After all the whole POINT of directions is not just whimsical pasttime or convenience. In a pinch people need to rely on this function. OR, are my expectations set too high? 
    How does the iPhone select between one app or the other (Apple Maps or Gppgle Maps) as it relates to SIRI finding and showing a map route?  
    Why does SIRI return an address that is NOT the correct address nor is the returned location in the requested ZIP code?
    Is there a known bug in the CONTACTS list that demands the USPS quadrant ID be spelled out, as opposed to abreviated, to permit SIRI to do its routing?
    Thanks for any clarification on these matters.

    siri will only use apple maps, this cannot be changed. you could try google voice in the google app.

  • Downloading google maps from apps store and songs from itunes.

    When I try to download google maps from the apps store or a song in itunes on my iphone 4s, i get the following message 'your account is not valid for use in US store. You must switch to pakistani store before purchasing'. How should I be going about it?

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • NB 6.1 and Google Maps

    I've looked all over and can't seem to find tutorial on Google Maps for NB 6.1 There is tut for NB 5.5 but it can't be applied to NB 6.1 as Netbeans developers said themselves:
    -  No Support for Ajax Sample Components
    -  Google Map - Planned for futureI've tried to work with NB 5.5 but the tut for Ajax Map Viewer isn't working quite right and the map component is the reason.
    Ajax Map Viewer component does not work properly under NetBeans Visual Web Pack 5.5.1.
        Description: The BluePrints Ajax complib needs to be updated and re-added to the project for this component to work properly.
        Workaround: To fix this issue:
           1. Update the BluePrints Ajax Components library from Update Center as described in Downloading and Importing Ajax Components.
           2. Remove the BluePrints Ajax Components library from the project: Under Component Libraries, right-click BluePrints AJAX Components (0.1.1) and choose Remove.
           3. Add the newly updated BluePrints Ajax Components library: Right-click Component Libraries and choose Add Component Library.
           4. Undeploy the web application.
           5. Stop the application server, clean and build the project, and restart the application server.
           6. Redeploy the web application. Tried it and now sometimes it works and sometimes it doesn't. Am I forced to abandon NB if I want to develop google map type of app?
    Edited by: najob on Sep 5, 2008 3:46 AM

    Hooo, speew, you are optimistic.
    I've definitely got the problem: ultra slow redraw, takes up to 40 seconds to activate when you click on an action such as 'directions from here' in a contextual menu, takes 30 seconds for a route to be drawn, takes 10 seconds for a zoom change, and more. 10 seconds may not sound like a lot, but to give you a reference, 90% of voicemails left are only 4-6 seconds. Give it a try.
    That's all without satellite view or any other services options turned on (hotels, show me etc)

  • Map marker + geolocation (google maps)

    I'm currently working on embedding a google map in my app. The geolocating already works ( I used this code: DPS Tips HTML5 Examples, thanks Bob!), but I just can't add markers to the map. I tried different codes but none seem to work. I would also need the markers to have their names shown (e.g. hotspot 1, hotspot 2).
    Has anyone here found a solution for this and would be kind enough to share?
    Thanks in advance!

    hi! I used the code for geolocation from the link above, and this code for the marker: Simple markers - Google Maps JavaScript API v3 — Google Developers
    It both works independently, but I can't mix them. I also can't find a way to modify my marker ( own icon) and add an info box. 
    I tried some of the following links to try and work those aspects to the marker file, if it helps with finding a solution:
    LabeledMarker Documentation: Examples
    Adding dynamic content to Google Maps marker - Stack Overflow
    map-geolocation-with-fancy-marker.html - gmaps-samples-v3 - Google Maps API v3 Sample Code - Google Project Hosting

  • Why Find My iPhone webpage uses Google Maps?

    Hello everyone,
    I remember Find My iPhone web edition uses the same Maps as mobile app. But I couldn't open Find My iPhone webpage because it uses Google Maps now. China blocked Google servers.
    Anyone can confirm it?

    I doubt they will switch any time soon considering the condition of Apple Maps on ios6 devices.

  • Opening Google Map with PDA GPRS in LabVIEW

    Hi,
    I would like to open Google Map in Internet Explorer of my PDA(connectivity through GPRS).
    The required URL example is http://maps.google.co.in/?ie=UTF8&ll=13.277373,77.623901&spn=1.83638,3.161316&z=9.
    Please let me know if any of you can provide insight towards opening this URL in LabVIEW in PDA.
    I use Windows Mobile 6.1 on HTC3350.
    Thanks in advance,
    Manu Mohan

    Manu,
    If you have options of using ActiveX properties on the mentioned windows mobile &
    also support for sufficient space ; install google maps and use the API`s to map them 
    on.
    Do try these links , may be of some help.
    Downloadable google maps 
    http://google-maps-for-mobile.en.softonic.com/java
    Google earth api`s 
    http://forums.ni.com/ni/board/message?board.id=170&message.id=217121
    Regards,
    Sundar.

Maybe you are looking for