GPS in Google Maps API - google-maps

I have an application with a Google map. I traced the routes with address history to follow to go from one point to another. I would like to implement GPS service on my map, like Google Maps application mobile, which will go running for both voice and by visualization. My APP is in HTML5 and in javascript, not in native.
Basically, I would like to do this with Google Maps Api or something like that:
Thank you and sorry about my english.

Please check the Google Maps API for the recommended use of directions https://developers.google.com/maps/documentation/directions/
Alternatively if you have a Android / iOS App and want to open google directions through an intent, check the documentation for Google Maps Intents for Android or Google Maps URL Scheme for iOS respectively

Related

What is the difference between Android location manger, Google play services location, Google Maps geolocation API to get current location?

I found that
Android’s Location Manager API
Google Play Services Location APIs
Google Maps Geolocation API
can get current location, what is the difference between them?
Especially Google Maps Geolocation API is not free, why should one use that instead of free ones?
Maybe Android's location Manager and Google play service location is only available to Android device, while Google Maps Geolocation works both on Android and iOS?
I don't have a lot of experience with what you're talking about, but I did some research about differences these technologies and maybe it can help you:
"Google Maps Geolocation API" unlike Android's Location Manager API, can work in web browsers as well as the Android operating system. And Google Play Services Location API is mostly used by mobile app developers to gather information about verified users.

Is there a traffic API for desktop apps?

I help develop a desktop app that displays map information with various layers on top. Now we want to add the Google Maps traffic layer. We do have a developer API key.
How can I use the Google API without a website, to generate just the data layer I need and download it in KML or GeoRSS or any other format so I can use it in the desktop app on top of my own map?
We already use the distance matrix, geocode, and directions API. Is there a traffic API as well, or are traffic data only available for embedding on a website?
Traffic data is not available as separate API. You can only use TrafficLayer of Maps JavaScript API or Android SDK.
There is a feature request in Google issue tracker to expose these data as an API:
https://issuetracker.google.com/issues/36537583
However, it looks like Google didn't set high priority on this task. Feel free to star the feature request to add your vote and subscribe to notifications from Google.
I hope my answer clarifies your doubt.

Can I generate URLs to point to Google Maps on all platforms and perform some actions

Regardless of the platform I would like to launch Google Maps and optionally perform some actions like showing location, route etc
Google provides Google Maps URLs which allows you to do just that. You can build a universal, cross-platform URL to launch Google Maps and perform searches, get directions and navigation, and display map views and panoramic images. The URL syntax is the same regardless of the platform in use.
You don't need a Google API key to use Google Maps URLs.
Google Map URLs
Recently, in May 2017, Google launched the new Google Maps URLs API. You can read about this API in the official documentation
https://developers.google.com/maps/documentation/urls/guide
This API is intended to provide universal, cross-platform Google Maps URLs. So you can use it with websites, mobile apps, etc.
Search, directions, display map and display street view panorama modes are available in this API.
I hope this helps!

Using Google Maps Engine in a custom iOS App

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

How can I link to a Google Maps directions url with the user's location already plugged in?

I was browsing Foursquare recently and they have this neat feature where you can click "Bigger Map" on their map, and it plugs your location in to Google Maps directions to the venue. I was wondering how I could replicate the functionality. (A high level overview is sufficient, I just can't seem to find it in the docs.)
It's not in the docs because it's not a Maps function. If you're talking about the Google Maps API, which is what Foursquare uses, they're detecting position using your device. I'm guessing for browser operations, they're using HTML5 geolocation. Here's a demo of just plain geolocation: http://html5demos.com/geo. That will ask the user to share their location with the app. Once you have that, you plug it into the Google Maps API Directions Service.