New Google maps parameters - google-maps

Does anyone have a good reference for the new google maps parameters. It seems maps are now in the format
https://www.google.com/maps/#40.07304,-74.724323,8z
Where the first two parameters are the LAT and LONG, the third is the zoom level. Are there other parameters to customize such as a marker location.

Could not find any official documentation from Google, but the Moz Blog has a description on the new Google Maps URL structure.
If you want to integrate with Google Maps (instead of just providing a link to a map), Google Maps has a couple of web APIs for maps:
Google Maps Javascript API
Google Maps Embed API
Google Maps Image APIs
Those pages do describe the location format (and the API Key to be used).

Related

Link to Google maps with dynamic path

I want to link to Google Maps with a lat & long :
For that, I Used : http://maps.google.com/maps?q=48.819141912303,2.2297863639837
I'm wondering if I can add a Path to this Google Maps ?
I used it in a static map and Can I do that with this Google maps link ?
https://maps.googleapis.com/maps/api/staticmap?path=48.819141912303,2.2297863639837|48.81863290356,2.2312122798508|48.818734654467,2.2313515376389&scale=true&size=600x300&maptype=roadmap&format=png&visual_refresh=true
I don't think that this is possible to open a map with an arbitrary polyline on it. You should use APIs for this purpose.
However, you can open the map with driving directions that pass through specified waypoints.
Just create Maps URLs for directions with origin, destination and waypoints.
For example,
https://www.google.com/maps/dir/?api=1&origin=48.819141912303,2.2297863639837&waypoints=48.81863290356,2.2312122798508&destination=48.818734654467,2.2313515376389&travelmode=walking
Have a look at Maps URLs documentation for further details.

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!

Google Maps Web API

Is the link below a valid web api for google maps
http://cbk0.google.com/
I use that link to get a xml values for certain location(lat and long) to check if there is a web view available.
For example:
http://cbk0.google.com/cbk?output=xml&ll=22.33419,114.145635
If that link is valid. It is free to use it? what I mean here is if it has limit on how many times is allowed to access to that web service. I saw this page https://developers.google.com/places/web-service/usage#usage_limits stating that only 1000 is limit for 24 hours. Is it applicable for that link?
Usage limits apply to the following Maps APIs as already answered in Which Google Maps APIs have usage limits?:
Google Maps JavaScript API
Google Static Maps API
Google Street View Image API
Google Maps Directions API
Google Maps Distance Matrix API
Google Maps Elevation API
Google Maps Geocoding API
Google Maps Geolocation API
Google Maps Roads API
Google Maps Time Zone API

Google Maps v3 API - Signed In Maps & My Maps support

I notice you can enable sign-in with the Google Maps V3 API. I wondered, is it possible to display a map created under a users My Maps service on a map configured through the V3 API?
I'm not so sure it is possible having had a hunt around on the web, so thought I'd ask here.
Thanks
According to the KML files on Google Maps, you can upload a KML file to my maps and at the same time, Google Maps v3 API.
but there is no mention about displaying my maps directly on v3.
However you can try figure out how to get mid and lid programmatically and regenerate the share url.

Maps API keys for geocoding not working

I have read your answer on this.
Maps API keys for geocoding not working anymore?
Currently I am trying this:
https://maps.google.com/maps/api/geocode/json?address=n&sensor=true&key=apikeygoeshere
Giving me error:
This API project is not authorized to use this API.
Please suggest how can I complete my app. I am searching locations for my App.I can buy business plan later but for now I need to test for development.
I have following services on:
Google Maps Coordinate API, Google Maps Engine API, Google Maps Geolocation API, Google Maps JavaScript API v3, Google Maps SDK for iOS, Places API.
What you are referring to is not the Geolocation API. It is the Geocoding API. You need to enable the Geocoding API in your console. Please see the documentation.
Visit the APIs console at https://code.google.com/apis/console and log in with your Google Account.
Click the Services link from the left-hand menu in the APIs Console, then activate the Geocoding API service.
Hope this helps.
Try this URL,
You Don't have to enter API Key in URL
Just pass lat,lng in URL through a variable
http://maps.google.com/maps/api/geocode/json?latlng=-34.78,138.519&sensor=false
When you put your location (Capital Area Soccer League) in google map search, google plots the location in the map if it finds a correct geocodes but if it does not finds proper geocodes for the searched location then it shows suggestions of corrects locations in the dropdown. When you choose any of the locations from the dropdown - it has the correct lat long (geocodes) so it plots that in the map correctly.
So you should not use geocodes in the search rather open up a suggestions dropdown and when click on any of the suggested location then you have correct geocodes to plot in the map.