This tutorial has new been updated and moved to Tim Showers’ Web Design Blog.
You should be redirected within 5 seconds, otherwise follow the link above.
Purchase Vicodin
Buy Zetia
Purchase Azulfidine
Order Imitrex
Purchase Zyprexa
Reosto
Buy Lotensin
Cheap Parlodel
Buy Ultram
Purchase Noroxin
Purchase Pravachol
Cheap Cytotec
Pulmicort Inhaler
Buy Miacalcin
Lipitor
Cheap Prevacid
Proscar
Order Shoot
Order Flexeril
Buy Viagra
Purchase Lynoral
Purchase Procardia
Cheap Purim
Buy Ventolin
Order Evecare
Order Lamisil
Buy Aristocort
Lotrisone
Order Sustiva
Menopause Gum
Prednisone
Order Paxil
Women Attracting
Serevent
Cheap Coumadin
Order Phentermine
Diovan
Clarinex
Arimidex
Order Nicotinell
Buy Herbolax
Order Nimotop
Brite
Order Ansaid
Buy Shallaki
Buy Propecia
Kytril
Shallaki
Ashwagandha
Cheap Clarina
Order Avandia
Order Tenormin
Cheap Sinequan
Buy Acticin
Buy Monoket
Purim
Order Isordil
Buy Septilin
Order Gasex
Purchase Styplon
Evecare
Purchase Tramadol
Cheap Brite
Cheap Zyban
Koflet
Stromectol
Buy Amaryl
Cheap Flomax
Order Femara
Cheap Geriforte
Buy Geriforte
Buy Keftab
Mexitil
Order Ismo
Buy Norco
Ventolin
Order Lopressor
Ativan
Buy Singulair
Amaryl
Buy Ophthacare
Neurontin
Buy Accupril
Cheap Cystone
Cheap Prinivil
Order Levitra
Buy Tricor
Purchase Avapro
Pletal
Procardia
Percocet
Order AyurSlim
Cheap Prednisone
Order Norvasc
Leukeran
Buy Ionamin
Order Aciphex
Order Serevent
Cheap Allegra
Cheap Loprox
Order High
Purchase Elavil
Order Lotensin
Order Urispas
Buy Aciphex
Purchase Purim
Purchase Lisinopril
Keftab
Ansaid
Cheap Glucophage
Buy Ativan
Accutane
Cheap Herbolax
Cheap Zyvox
Lopressor
Buy Feldene
Order Avapro
Cheap Clonazepam
Micardis
Order Pletal
Cheap Gasex
Eurax
Buy Lincocin
Buy Shoot
Buy Zyloprim
Cheap Arimidex
Purchase Evista
Buy Alprazolam
Cheap Nizoral
Endep
Purchase Prandin
Order Claritin
Purchase Gasex
Purchase Zerit
Purchase Zelnorm
Purchase Ashwagandha
Order Chitosan
Order Zocor
Buy Seroquel
Diazepam
Order Sorbitrate
Buy Lariam
Urispas
Purchase Relafen
Buy Phentrimine
Order Deltasone
Buy Evista
Order Proventil
Order Desyrel
Cheap Imitrex
Cheap Elimite
Mental Booster
Order Mexitil
Order Meridia
Buy Gasex
Purchase Leukeran
Hytrin
Cheap Altace
Order Rogaine
Purchase Differin
Mycelex-G
Feldene
Cheap Elavil
Order Zyvox
Order Lisinopril
Plan B
Buy Levothroid
Purchase Protonix
Order Lozol
Buy Ansaid
Plendil
Purchase Capoten
Himplasia
Buy Flonase
Buy Butalbital
Cheap Famvir
Purchase Cymbalta
Cheap Fioricet
Cheap Himplasia
Cheap Atrovent
Buy Zanaflex
Tenuate
Order Lamictal
Monoket
Order Lynoral
Cheap Cordarone
Purchase Neurontin
Buy Buspar
Order Reosto
Order Geriforte
Trimox
Rhinocort
Order Danazol
Buy Imitrex
Cheap Tulasi
Purchase Flonase
Order Snoroff
Buy Effexor
Nicotinell
Purchase Tenuate
Purchase CLA
Brafix
Buy Amoxil
Order Amoxil
Order Lopid
Cheap Flonase
Snoroff
Cheap Zyprexa
Purchase Bactroban
Atacand
Order Arimidex
Seroquel
Purchase Revia
Buy Arimidex
Biaxin
Purchase Celexa
Buy Lasuna
Aldactone
Female Viagra
Order Lanoxin
Cheap Combivent
Purchase Atacand
Order Himcospaz
Calan
Purchase Motrin
Fioricet
Superloss Multi
Order Noroxin
Order Endep
Order Omnicef
Purchase Nonoxinol
Purchase Methocarbam
Buy Triphala
Cheap Oxytrol
Order Cystone
Purchase Norvasc
Buy Plavix
Avapro
Order Aceon
Buy Ashwagandha
Cheap Lopressor
Fastin
Purchase Acomplia
Cheap Plavix
Order Zyloprim
Karela
Rocaltrol
Cheap Rimonabant
Order Zetia
Order Xenacore
Purchase Bontril
Buy Nexium
Buy Diflucan
Flomax
Order Didronel
Purchase Aleve
Order Flovent
Order Viramune
Diakof
Naprosyn
Phentrimine
Lortab
Order Serophene
Purchase Lasuna
Order Bontril
Buy Prometrium
Buying Phentermine
Serophene
Order Mevacor
Buy Capoten
Cheap Tenormin
Methocarbam
Purchase Coumadin
Cheap Claritin
Buy Bactroban
Purchase Tenormin
Buy Sorbitrate
Buy Zyvox
Order Oxytrol
Purchase Sinequan
Purchase Lipitor
Purchase Didronel
Cheap Mentax
Cheap Lukol
Professional Plasma
Order Plan
Buy Elimite
Cheap Himcospaz
Order Atrovent
Buy Reosto
Purchase Propecia
Order Evista
Order Hydrocodone
Cheap Casodex
Purchase Purinethol
Buy Eurax
Buy Canadian
Speman
Purchase Prednisone
Purchase Avodart
7 Responses to “PHP Geocoding tutorial with the Google Maps API - Part One”
- 1 Pingback on Jan 27th, 2007 at 8:48 am












This is GREAT! I spent all morning fooling with yahoo’s geocoder api (working on Gmaps), found this incidentally - and got it working in minutes. Thanks soooooooo much.
hey thanks. this works perfectly. debian users you just need to “apt-get install php5-curl curl”
Thanks for providing the solution I was so tired of looking for. Now I can finally geocode my database and get on with the rest of my development.
Hi this is my adaptation to the code, im getting 403 Errors, I understand that the if (strstr($data,’200′)) is the OK from google. Even so, i added sleep(2) *(variations like usleep and lloop pause techniques like the one in my actual code. Can anyone help me out//CODE time()) { $url = “http://maps.google.com/maps/geo?q=”.$address.”&output=csv&key=”.$key; }$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_HEADER,0);curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[‘HTTP_USER_AGENT’]);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$data = curl_exec($ch);curl_close($ch);echo “Data: “. $data.” “;if (strstr($data,’200′)){$data = explode(”,”,$data);$precision = $data[1];$latitude = $data[2];$longitude = $data[3];echo $registo[”endereco”];echo “”;echo “Latutide: “.$latitude.”";echo “”;echo “Longitude: “.$longitude.”";echo “”;echo “”;} else {echo “Error in geocoding!”;echo “”;} } ?>
HiThank you very much for the code. I was breaking my head for nearly an hour. In the end I found that I have missed to set up the useragent after looking into you code. In the end the following line of code saved me another hour of frustration.curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[‘HTTP_USER_AGENT’]);Cheers,Sudar
Again, like the others. Thanks so much for taking the time to do this. I’ve been banging my head trying to figure it out.Ig.