Suhayb Kharabsheh Suhayb Kharabsheh - 7 months ago 57
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 ?


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