Search and display business locations on MKMapView

前端 未结 2 1194
生来不讨喜
生来不讨喜 2020-12-16 06:55

I\'m trying to find a way to search for a business, such as \"grocery stores\" and display them on a google map around the users current location. This used to be pretty si

2条回答
  •  暖寄归人
    2020-12-16 07:34

    Rather than using the maps?q= string, it is better to use the the official API here: http://code.google.com/apis/maps/documentation/geocoding/

    The JSON replies of the API work with the JSON Parser http://code.google.com/p/json-framework/ better (the other URL doesn't return compliant JSON, and isn't a standard API so may be more subject to change).

提交回复
热议问题