Hi Wapplers,
I have been following a video about adding google maps and directions. I have tables with the addresses in but they are not lat lng.
Can dynamic waypoints accept a query of addresses not lat lng?
I have it all working really nice apart from the all important part. A user setups their trip, they select a customer that gave collection and delivery addresses, you add the customers/collection/delivery addresses into your trip and it creates the trip tables etc, but not on the map. I can add a manual waypoint of a string address, i.e “High Street, Derby, UK” and it works, so waypoints does appear to accept non lat lng addresses, but cant get that to work with 2 addresses, but dont know the seperator
so maps directions in wappler will accept more than one string address and work, just put this in “89-1 Fennell’s Cl, BN21 2RQ
|10 High St, DE73 6UF”
and it worked and gave the directions from start to B then C back to D.
But passing the same 2 addresses from a query does not work
Google maps api has limits for using addresses in for the dynamic pins/locations on the map and probably you hit them. Please check the browser console for any error returned by Google Maps API.
i hoped you just solved it then lol, i looked in console and it said could not geocode, so enabled that api in google maps. Not hitting any limits, its in dev, 2 addresses.
but now i enabled geocode I get this error
js?key=AIzaSyBZU18umN4IQDtZ-gwLbTRZbOQ2Rh2yrfs&language=en:70 InvalidValueError: in property waypoints: at index 0: in property location: not a string; and not a LatLng or LatLngLiteral: in property lat: not a number; and unknown property address1