SRL Archive - Web Development

Google Maps API PHP


Simtoon

2011-09-16 04:36:34

I'm setting up a ecommerce site for my work

I need to get the distance between addresses using php


http://maps.google.com/maps/api/directions/xml?origin=550+Madison+Avenue,+New+York,+NY,+United+States&destination=881+7th+Avenue,+New+York,+NY,+United+States&sensor=false

<text>0.6 mi</text>

I need something that can return that 0.6 mi

Harry

2011-09-16 04:43:50

preg_grep

Sex

2011-09-16 06:03:55

You could even use SimpleXML :rolleyes:.

Nava2

2011-09-16 11:32:55

http://maps.google.com/maps/api/directions/json?origin=550+Madison+Avenue,+New+York,+NY,+United+States&destination=881+7th+Avenue,+New+York,+NY,+United+States&sensor=false

This might help too :)

Dankness

2011-11-08 13:46:37

I use CodeIgniter in alot of my projects and there's a awesome Library out for Google Maps. you can display a map with 6 lines of code basically and it also has distance, driving directions, etc, etc.