Please tell me how to get the location latitude and longitude from the address with out using google maps.Thanks in advance.
Asked
Active
Viewed 2,227 times
-1
-
http://stackoverflow.com/questions/98449/how-to-convert-an-address-to-a-latitude-longitude – shahid-rasheed Jul 20 '12 at 07:07
-
Have you done any research on this yourself? – woz Jul 23 '12 at 12:28
2 Answers
1
How about trying Yahoo! Maps Web Services - Geocoding API
After obtaining the app id, with a get request like below
http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&street=701+First+Ave&city=Sunnyvale&state=CA
You get a xml response like
<?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>

meadhikari
- 971
- 3
- 13
- 27
0
Have you looked at CLLocation?

yeesterbunny
- 1,847
- 2
- 13
- 17
-
I tried using CLGeocoder and it displays the location in map view.but I need to display the route directions from start point to end point in Map view.Can you give me any idea how to display with out using google maps. – user1423012 Jul 20 '12 at 13:49