Function to connect PHP to google maps

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
scorpio90
Forum Newbie
Posts: 23
Joined: Wed Mar 10, 2010 10:45 am
Location: Newcastle

Function to connect PHP to google maps

Post by scorpio90 »

Hi Guys,

I currently have a form in which clients upload thier property details onto to be fed into mySQL then automaticly creats them a personal website for their property, however at the moment i am having to go into google maps to find out things like local shops and bars in the area of the property listed.

i was just wondering if anyone knows a code that i could possible use that when a client fills in a form with a property address it is inserted into google maps and will pick out the local things which i need?

i hope this is enough infomation for you to understand what i mean ... if not please let me know ...

any help or advice would be a great help .. thankyou.
solid
Forum Commoner
Posts: 28
Joined: Wed Aug 12, 2009 11:56 am

Re: Function to connect PHP to google maps

Post by solid »

A quick google search for 'php google maps' returned this: http://www.phpinsider.com/php/code/GoogleMapAPI/
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Function to connect PHP to google maps

Post by Technocrat »

I think what you want isnt possible with the API. I think its something they are in dev on. However I would love to know how to do it if possible.
scorpio90
Forum Newbie
Posts: 23
Joined: Wed Mar 10, 2010 10:45 am
Location: Newcastle

Re: Function to connect PHP to google maps

Post by scorpio90 »

yea i know i think it would be verry usefull if you can get it as would save a heck of a lot of time ...

however, thank you for the replys and i managed to find something called geo codeing ...

as far as i know at the moment it takes the address of the property entered then converts it to the londitude and latitude which then can be put into google maps..
unfortunatly i dont think that this will give me local infomation unless i possible set the variables to what i need ...

with a bit of luck this might work :D

i will post back if i can sort it out :wink:
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Function to connect PHP to google maps

Post by Technocrat »

The reason I said that I think they are working on it is the phone apps are supposed to have that ability in the near future. So you can be walking down the street, pull out your cell, have it gps your location, then pull up things around you based on categories like restaurants or bars. Supposed to be later this year. So I would say once that is out the API will have that ability.
Post Reply