Google Maps API to navigate a custom route - google-maps

I would like to develop a mobile app for cycling using google maps API.
Is it possible to create a custom road network and request routes using only that network?
For example:
https://www.buenosaires.gob.ar/ecobici/pedalea-la-ciudad
Load that information in a custom layer and be able to only get directions using that routes.

Related

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.

Will Google Maps expose the web API of traffic data to developers?

I am using predix map components to render map. And I want to add local traffic information on the map, which need the traffic data to render the traffic layer. But it looks like google maps has no such web api for developers to get JSON or XML type traffic data.
So, I really want to know if Google can provide this web api?

Ionic2/3: Is it possible to open google map APP by passing custom lat- long?

Currently i am working with ionic 3 project.
I have latitude and longitudes of particular location and want to get root of that location using google map Mobile Application, Just want to open that location by navigating to google map app.
do anyone here with any suggestions or idea ?
Thanks
As of 2017 the recommended by Google method is the Google Maps URLs:
https://developers.google.com/maps/documentation/urls/guide#directions-action
You can create a cross-platform universal URL for Google directions following the documentation and use the URL in your intents. For example the URL might be something like
https://www.google.com/maps/dir/?api=1&destination=60.626200,16.776800&travelmode=driving
You can use Ionic Native Launch Navigator now to load the native maps app to a destination. You can specify the app launchnavigator.APP.GOOGLE_MAPS or the user can specify.
Pass the lat long as first argument as shown here
this.launchNavigator.navigate([50.279306, -5.163158], options)
.then(
success => console.log('Launched navigator'),
error => console.log('Error launching navigator', error)
);
The recommended by Google way is using the Google Maps URLs API:
https://developers.google.com/maps/documentation/android-api/intents
Using Maps URLs, 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. These universal URLs allow for broader handling of the maps requests no matter which platform the user is on.

Custom Map to show on API

I am trying to show a race course via the google api. I have gone in and created a custom map and can't figure out how to show that from the api. I am trying to add this to a website and then want to add another API on top of it.
This is the map I have created
To display data from Google MyMaps on a Google Maps Javascript API v3 map, export the data as KML/KMZ, then display it using KmlLayer
related questions:
Importing myMaps data in google maps
Render a My Maps using Google Maps JavaScript API
example
Since you tagged this question with google-static-maps, you may also be interested in:
Issue 207: KML layer in Static Maps API
Show a route on a map

Google Maps REST API to Create Custom Maps?

I have a database table with a listing of thousands of locations. I would like to create a custom map (accessible from the main Google Maps splash page by going to Menu->Your places->Maps. These are the same maps that you can create yourself at google.com/maps) using REST URLs to drop dots associated with my location addresses. The populated custom map will then be accessed through google.com/maps. I am not looking to embed Google Maps on a web page.
I've looked here, but I have not been able to find a set of REST URLs that I can use to do this. Most of the APIs provided by Google comes in the form of client-side JavaScript libraries.
Is there a way to create a custom map using exposed REST endpoints from Google?
The brief answer is no.
Maps Data API has not been available since 2011 (see Maps Data API deprecation announcement) and as for now there still is no way of doing it programmatically (see Allow programmatic access to MyMaps)