-1

グーグルマップを使わずに住所から緯度経度を求める方法を教えてください。よろしくお願いします。

4

2 に答える 2

1

Yahoo!を試してみませんか?マップWebサービス-ジオコーディングAPI

アプリIDを取得した後、以下のようなgetリクエストを使用します

http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&street=701+First+Ave&city=Sunnyvale&state=CA

次のようなxml応答を受け取ります

<?xml version="1.0" encoding="UTF-8"?>
 <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="urn:yahoo:maps"
  xsi:schemaLocation="urn:yahoo:maps    
 http://local.yahooapis.com/MapsService/V1/GeocodeResponse.xsd">
 <Result precision="address">
  <Latitude>37.416384</Latitude>
  <Longitude>-122.024853</Longitude>
  <Address>701 FIRST AVE</Address>
   <City>SUNNYVALE</City>
   <State>CA</State>
   <Zip>94089-1019</Zip>
   <Country>US</Country>
  </Result>
 </ResultSet>
于 2012-09-05T10:55:43.117 に答える
0

CLLocationを見ましたか?

于 2012-07-20T08:12:25.860 に答える