Parsing external XML to JSON in Java?

后端 未结 2 1346
失恋的感觉
失恋的感觉 2021-01-20 22:05

So I\'m sitting here with Google Geocoder, which returns an XML via \'GOOGLE_URL/xml?address=input&sensor=false\'. I need to fetch it by using Java and parse it into a J

2条回答
  •  逝去的感伤
    2021-01-20 22:35

    Why don't you retrieve the Google geocode as JSON in the first place?

    • http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true

    The above link is taken directly from:

    • http://code.google.com/apis/maps/documentation/geocoding/#JSON

提交回复
热议问题