I see that the google map feature in ACF Pro 5 saves the address as a single string.
I will need an export feature in the site I am developing and the target of the exports is expecting a split address into each line as a separate string. It seems that handling this is going to be a nightmare. Has anyone else encountered this problem and found a solution?
I edited core code to do this, but a better approach might be to use the saved lat/long to query google and get exactly the components you want.
Just send it through this and it’ll give you JSON:
http://maps.googleapis.com/maps/api/geocode/json?latlng=44.4647452,7.3553838
@randomlines Ah brilliant thanks so much, that second idea is just what I was after. I didn’t realise the google API was quite so helpful and easy to use.
Thanks so much
@randomlines I just had a thought though; how specific are googles geocode entries… would they always locate to the correct house number?