Anyone familiar with how Google Maps wants the URL? The SuiteCRM maps doesn’t work when you click on “google maps view” or “Get Directions”. It goes to 404 page. I’m guessing because when I Iook for an address on Google Maps, the URL is formed differently. Just wondering if this a bug in the maps feature? Might be an easy fix in the code if the output just needs to be formatted differently.
Example (output from SuiteCRM)
http://maps.googleapis.com/maps?q=60%20Wanless%20Court%2C%20Ayr%2C%20Ontario%2C%20N0B%201E0%2C%20Canada
Google Maps Actual URL:https://www.google.com/maps/place/60+Wanless+Ct,+Ayr,+ON+N0B+1E0/@43.3355112,-80.4518452,17z/data=!3m1!4b1!4m5!3m4!1s0x882c74ca2166f4cd:0x1422180b1ec23145!8m2!3d43.3355112!4d-80.4496565
So did some playing around… I got this URL to work:
https://www.google.com/maps/place/60%20Wanless%20Court%2C%20Ayr%2C%20Ontario%2C%20N0B%201E0%2C%20Canada
so basically, I think just the first part of the URL needs to be replaced, everything else will work fine.
So basically the first part of the url just needs to be replaced with: https://www.google.com/maps/place/
Looks like this issue is already logged in Github with a work around…
opened 07:24AM - 21 Jun 19 UTC
Type:Bug
Priority:Important
Area: Module
#### Issue
- markers (leads, accounts and such) are displayed on the map
- i… f clicked, each marker contains two links ("Google Maps View", "Get Directions"):
![chrome_H9K6bJfTOX](https://user-images.githubusercontent.com/52065159/59905228-db822e80-9405-11e9-9357-552b83fd13a8.png)
- both aren't working; they are linking to `http://maps.googleapis.com/maps?saddr=some¶meters` and the browser returns a 404 page
#### Expected Behavior
- both links should use `maps.google.com `, for example `http://maps.google.com/maps?saddr=some¶meters`
#### Actual Behavior
- both links use `http://maps.googleapis.com`
#### Your Environment
* SuiteCRM Version 7.11.5
1 Like
Here’s a third fix:
opened 07:24AM - 21 Jun 19 UTC
Type:Bug
Priority:Important
Area: Module
#### Issue
- markers (leads, accounts and such) are displayed on the map
- i… f clicked, each marker contains two links ("Google Maps View", "Get Directions"):
![chrome_H9K6bJfTOX](https://user-images.githubusercontent.com/52065159/59905228-db822e80-9405-11e9-9357-552b83fd13a8.png)
- both aren't working; they are linking to `http://maps.googleapis.com/maps?saddr=some¶meters` and the browser returns a 404 page
#### Expected Behavior
- both links should use `maps.google.com `, for example `http://maps.google.com/maps?saddr=some¶meters`
#### Actual Behavior
- both links use `http://maps.googleapis.com`
#### Your Environment
* SuiteCRM Version 7.11.5
Which fix(es) work(s) completely? Which fix(es) follow google guidelines?