How do you retrieve further information from the JSON file such as State, for instance I see the information in the JSON file {"long_name":"Queensland","short_name":"QLD","types":["administrative_area_level_1","political"]},
How do i retrieve Queensland or QLD?
You will need to loop through the Address_components of the Results and test for Types = "administrative_area_level_1". When you find a match, then you can assign the Long_name or the Short_Name to the target object or variable that you want to use it with.
Is this enough detail to get you unstuck?
Charles Papp wrote:
Hi Charles,
A little (a lot) more detail would be useful. This would be my first time trying to do something of that nature, so as much detail as you're willing to give would be very useful.
Talis Krumins wrote:
Never mind, worked it out. Thanks for your help!
Sorry, I didn't have time yet to reply in more detail, but I'm glad you worked it out. :)