Basically this is the problem, I'm building this API for my work which will place all of our customers on a map with markers. That is the basic idea of the project. Behind the scenes this is what is happening though instead of geocoding the addresses each time the page loads I'm storing all the information in a MYSQL database, I can handle the map api part; loading the markers and such, what I'm working on now is the actual geocoding of the addresses. How it is done is through a basic web form I enter the customers name, address, and info upon submit it posts that info to a php script which takes the address geocodes it and stores it in the DB. How do I integrate the yahoo geocoding tool into a php script for my purposes. I've done it with the google api but their geocoding tool can not find all my addresses correctly.
Any code snippets of pointers will help immensely. thanks
mysql_query("INSERT INTO markers (id, name, address, lat, lng, tower) VALUES ('NULL', '$_POST[name]', '$_POST[address]','$_POST[city]','$_POST[state]', &Latitude, &Longitude,'$_POST[tower]')");
echo "<a href=\"form.html\">Click Here to Return to the form</a>";
And these are the error messages...
Warning: file_get_contents(http://local.yahooapis.com/MapsService/V1/geocode? appid=sSuPmUPV34EIHitzrXvxO3yRBhxJN70rA9blO3onSNmQ68ppKBbMg65NUkDjixtaEAAyGN0-&street= U360+County+Road+16&city=Napoleon&state=OH) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in I:\wamp\www\New Folder\phpform.php on line 26