iPhone development - Locate address from user's position - iphone

Is it possible to get the street/area where the user currently is by using the CoreLocation framework? So if I get the user's longitude and latitude position, can I get the address (xx street, yy city, z state) from that position?
Thanks.
Someone had already posted the question before. Just found out Get street address at lat/long pair

What you would need is a reverse geocoding service, that will translate a lat/lon coordinate set in to an address. I doubt that this, or access to one, is included in CoreLocation.
You could look into a third-party provider such as Google Maps:
http://nicogoeminne.googlepages.com/documentation.html
There are also other work-arounds that might get you close. For example by using Multimap's routing API as described in the following:
http://forums.multimap.com/viewtopic.php?f=1&t=51

Agreed - you need a reverse geocoding service - this is not included in Core Location. There is a fairly complete list of reverse geocoders here link text

Related

reverse geocoding on the IPhone - getting exact street numbers

We are building a series of applications for the IPhone (IOS5), where we use reverse geocoding. Most of the time, CLGeocoder returns a range for the address number (eg. "someaddress 2-5"). We want to retrieve the exact street number for every reverse geocoding request.
As I have come to understand, this is not controlled by me as a developer but rather by Apple, which makes a call to Google and returns the results (the range of street numbers). Has anybody else encountered the same problem and found a solution?
One solution I was advised to do is purchase the google maps API for business. In its documentation it states that it offers "advanced geocoding", but no details are given for reverse geocoding and street numbers. Has anybody had any experience with this API?
Another thing that comes in mind is to use some third-party service that does reverse geocoding. But the thing I am not sure is if Apple will accept it. Does anybody has to suggest a third-party service that does reverse geocoding and returns the exact street number for a given position on the map?
Thank you in advance
It looks like GeoNames would fit your needs well.
From the Wikipedia page:
GeoNames is a geographical database available and accessible through
various Web services, under a Creative Commons attribution license.
I myself have been using CLGeocoder, and haven't experienced any issues with it returning a range of street numbers.

How to get latitude and longitude of a city?

I am designing a project in which I have used two text fields. One is for source address and another one is for destination address.
Now, I want to get latitude and longitude of both addresses and then draw it on map view.
How can I accomplish that?
check this post for geocoding
http://fredandrandall.com/blog/2011/03/23/geocoding-on-the-iphone-getting-the-latitude-and-longitude-of-an-address/
How do I do geocoding (NOT reverse geocoding) on iPhone?
Do check out SVGeocoder. It's able to perform both forward and reverse gecoding via Google API. Not to mention it's also very easy to use.

Location services(iPhone) other than Google

In our iPhone application we have a requirement to display UK County and Area name of a location ( we have latitude and longitude) . Initially we used MAPKit framework (reverse geocoding) to get this information. But during testing we found that we are not getting correct data from Google always.
Can somebody suggest any alternative method to get this information ? We are ready to use paid services also.
You can take a look at CloudMade. They have pretty decent solutions for anything map service related. They use source from OpenStreetMap but you can do all sorts of customization to the maps. Another option is through Bing maps. It looks neat but I haven't tried it myself.

find nearest places in iPhone

Hello all iPhone developers,
I am developing an iPhone application.
In this application i want to find nearest places related to current CLLocation that I am getting from the iPhone device.
I have currently a database in different server .
I am accessing it via .NET web service.
In the database for testing purpose i have created some records with fields of latitude and longitude that I have taken from google maps.
Now ,My Question is that:
How can I determine that the location in the database is near by( within a range of kelometers) the current location ?
I have my options as below:
if
i have to get a address based and currentLocation.latitude and
currentLocation.longitude and pass it
to the service where i compare it
with the available address ( i have
read somewhere "geocoding").
else if
i can pass the latitude and longitude directly to the web-service
and do (what type of i want some
suggestion if any one knows) some
calculations there and give back the
nearest places data back to iPhone.
else
or this solution is completely
logical and if anyone have solution
reagrding it or a tutorial then it
will be useful.
It's true, there are a lot of reverse geocoding services out there (Google, Yahoo!, GeoNames, etc.) to convert from a lat/lon pair to a street address.
But if you have lat/lon pairs in your database already, then I don't think you ever need to convert to a street address. Calculating distances is much easier if all your points are represented by lat/lon, you can use the Haversine formula.
And in fact, if your database natively supports spatial types (for example, MS SQL 2008 appears to), then you can push that calculation into the database layer and not have to worry about it. That seems like the right approach to me: have your iPhone app send lat/lon to your web service and have the database calculate the nearest points-of-interest.

how to get latitude and longitude from the address in MKMapkit?

I have implemented one application .In which i want to get latitude and longitude from the address.I dont want to use java script.Is it possble then please help me.
AFAIK, MKMapKit does not support this.
MapKit has no geocoding support (only reverse geocoding) but Google offers a HTTP Geocoding service that's very easy to use – assuming you comply with their license terms:
Note: the geocoding service may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited.
Use the example from Apple’s «Location Awareness Programming guide: Geocoding Location Data» to pinpoint your location on the map, then call Google Geocoding Service (post a request, parse the result json/xml data) to get the address.