Reputation: 11
I'm looking for some help on comparative OpenLayer
functions for the following Google maps functions, can someone please let me know what these would be?
I'm currently using
http://maps.googleapis.com/maps/api/distancematrix
http://maps.googleapis.com/maps/api/geocode/json?address
Kindly check the attachment which are using for getting latitude, longitude and distance matrix.
Function names:
function getLatLng($add)
function getRoadDistance($from, $to)
--
Upvotes: 1
Views: 556
Reputation: 1060
things are a little bit more complicated in OL than they are with the google-api
Or if you want to use it on a bigger scale there some APIs that do it for you, for example yourNavigator, you'll have to make a get request with your coordinates like this
http://www.yournavigation.org/api/1.0/gosmore.php?format=geojson&flat=startLatitude&flon=startLongitude&tlat=destLatitude&tlon=destinationLongitude
there is also the OSRM for the same purpose.
that's what I could think of right now, I hope it helps
Upvotes: 1