Google maps directions failing saddr daddr - google-maps

I am sending directions in emails with this syntax
https://maps.google.com/maps?saddr=58.2835809,12.269723200000044&daddr=58.03126090000001,12.803917500000011+to:58.03126090000001,12.803917500000011+to:58.2583346,12.95071710000002+to:58.2835809,12.269723200000044
This has stopped to work in Android and iPhone but still works in desktop browsers. I have tried to find a solution on the web but failed to do so. Any ideas?

That is the "classic" Google Maps directions, it was never documented (by Google). You can use the documented Embed API:
https://www.google.com/maps/embed/v1/directions
?key=YOUR_API_KEY
&origin=58.2835809,12.269723200000044
&destination=58.03126090000001,12.80391750000001
&waypoints=58.03126090000001,12.803917500000011|58.2583346,12.95071710000002|58.2835809,12.269723200000044
working example

I solved it with this syntax:
https://www.google.com/maps/dir/58.2835809,12.269723200000044/58.03126090000001,12.803917500000011/58.2583346,12.95071710000002/58.2835809,12.269723200000044/am=t

Related

Google Maps API - Geolocation not working in Firefox

Recently I noticed that geolocation doesn't work on Firefox when using Google Maps API. After googleing for a while, I tried showing my current location (from a laptop, not from mobile) on Google Maps, but it didn't work there as well.
Here's what I have in my geo.wifi.uri in the about:config Firefox's tab:
https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
Can anyone help me?
I faced the same problem, and from what I found, we can't use Google's Geolocation unless we get our own API key. If you don't mind, you can use Mozilla's Geolocation, but the results will be different from Google's.
You can change https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY% to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%
Source

Google maps API doesn't work in safari

hello im hosting Google maps API on my localhost for now, and it appears fine in Chrome and the mobile phone version. (both safari and chrome iPhone versions).
My problem is Google maps doesn't show when it comes to my Mac version of Safari. the Grey(background) shows and the cursors change to the Google maps cursor, but the map and content doesn't display. what can be the problem?
Here is a link to the map. as you can see the map displays in Chrome but not in safari.(at least not for me).
http://jsbin.com/cahicomame/1/edit?html,output
there is no guarantee that navigator.geolocation.getCurrentPosition will return a result. The user may deny the permission or the geolocation-service may not be able to locate the user.
You better initialize the map with a default-center (center is required to display the map).
I find the solution after 1 hours , it's because my website (developpement) was in http and not https :) Safari will ask your localisation.

Google Map <iframe> unable to load Chrome version30.0.1599

I have tag used to load the google map in my web site. All browser load the google map Successfully , Except google chrome Version 30.0.1599.69 . how to fix this issue in Google chrome 30.0.1599.69 ? give me suggestion .
Sample code:
I'm a Google trusted photographer and this issue is a big problem for my clients.
before the issue was solved, you could use the maps api. I did this little tool : http://visitevirtuelle.odoxo.fr/bug-de-chrome-30-et-des-iframe-de-google-maps/ to replace the google iframe by a modified one, it works for Streetview and business photo (and really simple maps).
It could help.

jquery mobile + Google Maps + Geolocation

I'm creating mobile version of company site and I wonder if there is possible to make navigation snippet that will be part of page, opened with mobile browser such as WebKit or Safari (Android, Windows, iOS devices) and will display route from current to fixed place (compay office)?
Something like navigation. All with jquery mobile + Google Maps API and...? maybe is something else needed?
Some advises?
well you can use the GOOGLE MAPS API V3. check the Google Code Playground.
You can also check Docs APIV3
You'll also need to make use of Google Maps Direction Service
You can get your current location using html5 directly. Geolocation in HTML5.
That should definitely work with jQuery Mobile and the Google Maps API. It has been done before by other users. A great place to look for more information on using the two together is the jQuery Mobile forum - http://forum.jquery.com/jquery-mobile

Get all images and css using Web Request (Network - Google Chrome)

I want to get the same results that Google Chrome get on his Network functionality Network Google Chrome. I found this, but i'm not sure if it works and how to use it. Basically i want to use that information to made a google chrome extension.
Any idea?
I think the chrome.devtools.network API would be better suited for your use.