php - Return latitude/longitude based on entered address -


I am creating a PHP based application for clients to enter the addresses of their customers' buildings. They want the ability to see the location on the map (either as a person or grouped in search of the city).

What is what I am trying to achieve after entering the address in a form that populates the database, so addresses, cities, states, zip (all these U.S. locations ), They can click on the "Get Late / Long Information" link / button which will check to ensure that the data has been completed and the latitude / longitude is appropriate Form field Switch to be back. Then the form can be presented to store the information, and later I can only stretch / elongate while doing the map on the map.

  1. Does this make sense or will I be better off when searching for time to stop?

  2. Does anyone have any indication to solve this problem?

> I have seen some Google / Yahoo APIs but it seems that it is based on the conspiracy of a point-piece. I may be able to modify it to meet my needs, but I hope there may be one more direct route to you, here I am trying to cut some research time.

If I have to do RTM ...

whatever you want It is known as geocoding; Check the Web service:

Geocoding is the process of converting addresses into geographic coordinates (such as Latitude 37.423021 and longitude-122.083739) (such as "1600 Amphitheater Parkway, Mountain View, CA"), Which you can use to keep the marker or to position it in the map.

The Google Maps API Geocoding service provides a direct way to access a giochoder via an HTTP request. In addition, the service allows you to perform a converse operation (the coordinates in the addresses are changing); This process is known as "reverse geocoding".

Your approach to the problem is understandable, although I'm not sure how much the geocoding result actually provides (unless you have users the resulting plot on the map).


Comments