Google Maps Question

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
rocketman
Posts: 1239
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Google Maps Question

Post by rocketman »

Will google Maps on a form work with long lats instead of full addresses with postal/zip codes

Will DISTANCE work between two sets of long/lat coords

If yes to either of those, what's the syntax for the location attribute please
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Google Maps Question

Post by Jaymer »

Location field data for LatLng should look like this: [email protected]

Inside Aware's Maps javascript, it looks for the presence of the @.
If not found, then it uses Google to GeoCode the address string in that same field.

Interesting tidbit: In aware's code, it sets an interval of 1.3 seconds in-between Geocoding because it says there's a "1 per second" limit by Google. But this says different:

Screen Shot 2022-02-28 at 11.50.40 PM.png
Screen Shot 2022-02-28 at 11.50.40 PM.png (39.75 KiB) Viewed 2413 times


So if you experience a delay and are sending full addresses to the map (vs. the LatLng format), then you may want to edit the code or contact support. This code from "map.js" looks like its out of date.
Screen Shot 2022-02-28 at 11.56.20 PM.png
Screen Shot 2022-02-28 at 11.56.20 PM.png (43.23 KiB) Viewed 2413 times
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply