Suhayb Kharabsheh Suhayb Kharabsheh - 1 year ago 94
JSON Question

Querying Geonames API to get only city country name

Too much useless json data is being fetched when I request a specific country cities by hitting this URL:

This returns too many json fields as you can see, question is hot to play with the query to get only city, country name ?

Answer Source

You can try with the additional parameter style=SHORT

The docs says: style, String SHORT,MEDIUM,LONG,FULL (optional), verbosity of returned xml document, default = MEDIUM

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download