は、過去に私が使用してきましたGeoCoding API:次のように呼び出すことができます
:テキストボックスについては
{
"results" : [
{
"address_components" : [
{
"long_name" : "94016",
"short_name" : "94016",
"types" : [ "postal_code" ]
},
{
"long_name" : "Outer Mission",
"short_name" : "Outer Mission",
"types" : [ "neighborhood", "political" ]
},
{
"long_name" : "Daly City",
"short_name" : "Daly City",
"types" : [ "locality", "political" ]
},
{
"long_name" : "San Francisco County",
"short_name" : "San Francisco County",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "California",
"short_name" : "CA",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Daly City, CA 94016, USA",
"geometry" : {
"location" : {
"lat" : 37.71,
"lng" : -122.45
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : 37.7113489802915,
"lng" : -122.4486510197085
},
"southwest" : {
"lat" : 37.7086510197085,
"lng" : -122.4513489802915
}
}
},
"place_id" : "ChIJWSqQqDx8j4ARXJte4A-IYow",
"types" : [ "postal_code" ]
}
],
"status" : "OK"
}
:このJSONデータを返す
http://maps.googleapis.com/maps/api/geocode/json?address=94016&sensor=true
非常に広いテーマである検索ボックスのように機能します。フォームについてはthis oneのようなW3Schoolsのチュートリアルを試してみてください。
希望すると便利です。
こんにちはadrian、ようこそ。あなたの質問は広すぎます。あなたの質問を改善するためにこれを見てください:https://stackoverflow.com/help/on-topic – petezurich
オフサイトのリソースを求めているので、それはオフトピックです – Plutonix