Building an iPhone app for a business with multiple locations. I have a mapview that shows all the locations, I got it to work to show the locations on the map. Zooming out you see all locations that I have specified. Issue is I need it to show closest location first to the current location of the customer.
Key points: 1. Using property-list (config.plist) to specify the locations. 2. It does show the blue dot for current location and that is accurate. When zooming out and selecting any of the location I have it set to take you to google maps and that is all accurate from current location to that specific business location. 3. This is for iPhone using of course xcode.
Thanks.
Just to give you a start with some code, here is an example of a method that iterates through all your locations and returns the closest one.
please, give some feedback if it helped.