I know the URL of accessing the google places. check here
But I am not able to parse the data coming from the URL in XML format. So, tell me the mechanism to display the data coming from google places API in xml format.
Please tell me some sample code or any tutorial for it.
Thanks in advance
First go to this. Link then other information about google places.
The Google Places API is a service that returns information about Places — defined within this API as establishments, geographic locations, or prominent points of interest — using HTTP requests. Place requests specify locations as latitude/longitude coordinates.
Four basic Place requests are available:
The Places API also offers support for events, which are defined as any type of public or private gathering, performance, or promotion that occurs at a location listed in the Places service. For more information, see Events in the Places API.
(More). Here is best tutorial for how to use google places in android.and go to this link also Google’s Places API to Develop Compelling Location Based Mobile Applications another google map example(here). Video for google developer for google places.
I think this might be helpful for you.
You can parse it by Json.
if you see your url contains
xml
here . This will give response in xml.output with xml:
Just replace it with
json
like this . This will give response in Json.output with Json:
see this-blog for further help
For parsing