Running fillLocationNames it returns all the correct address, but in the ImageLocation metadata field it places the street address last, for example:
Kokopu Block Road, Whangarei, 0179, 40
where "40" is the street address
I'll take a look, but the information returned by Google is quite complicated, and the format is not consistent. the order of fields is exactly the order provided by Google. do you suggest that for the anglo-saxon countries to change the order and put the number first?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, we would typically have
Street number, street name, town name, post code which would make this
address
40 Kokopu Block Road, Whangarei, 0179
I checked another couple of photos and it also puts the number last so
isn't particular to that specific location. If it's difficult to change due
to inconsistency of the return from google it's not a big problem. All the
details are there
Regards
Anthony Gillard
Last edit: Liviu Ionescu (ilg) 2013-11-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anthony, can you provide me a list of country codes (the ISO 3 letters notation) where this convention is in use? I only know about USA, and probably UK.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, just searching international address formats and I did not realised it varied so much. I have first hand knowledge with AUS, NZL and USA (and I'm sure GBR does also) which follow the format with street number first. This is about the best source I found that show the differences.
With there being so many differences across the world, is it possible to maybe use a configuration file that allows people to change the order to how they wish?
Last edit: Barmooka 2013-11-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tested on a few more NZL photos and it worked perfect. Over the next few days I will try some more NZL and also test on some AUS and USA photos I'm about to import
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I advice you to subscribe to the git/scripts notification lists, to know when to update from the repository.
If you encounter strange results, you can experiment in google.py and let me know if you find a convenient result and want it incorporated in the project.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'll take a look, but the information returned by Google is quite complicated, and the format is not consistent. the order of fields is exactly the order provided by Google. do you suggest that for the anglo-saxon countries to change the order and put the number first?
Yes, we would typically have
Street number, street name, town name, post code which would make this
address
40 Kokopu Block Road, Whangarei, 0179
I checked another couple of photos and it also puts the number last so
isn't particular to that specific location. If it's difficult to change due
to inconsistency of the return from google it's not a big problem. All the
details are there
Regards
Anthony Gillard
Last edit: Liviu Ionescu (ilg) 2013-11-27
Anthony, can you provide me a list of country codes (the ISO 3 letters notation) where this convention is in use? I only know about USA, and probably UK.
I committed some changes to put street number first for USA, GBR and NZL.
However, please keep in mind that after the optional postal code you may encounter the following fields:
'administrative_area_level_3', 'sublocality',
'neighborhood', 'establishment',
'train_station', 'transit_station', 'bus_station'
Hi, just searching international address formats and I did not realised it varied so much. I have first hand knowledge with AUS, NZL and USA (and I'm sure GBR does also) which follow the format with street number first. This is about the best source I found that show the differences.
http://wiki.openstreetmap.org/wiki/Name_finder/Address_format
There is also more details here but not as concise as above
http://en.wikipedia.org/wiki/Address_(geography)
http://bitboost.com/ref/international-address-formats.html#Formats
With there being so many differences across the world, is it possible to maybe use a configuration file that allows people to change the order to how they wish?
Last edit: Barmooka 2013-11-27
It is possible to use a configuration file, but things may get very complicated.
For a limited number of configurations it is probably easier to directly customise the source code.
Last edit: Liviu Ionescu (ilg) 2013-11-27
I tested on a few more NZL photos and it worked perfect. Over the next few days I will try some more NZL and also test on some AUS and USA photos I'm about to import
I just added AUS to the list.
I advice you to subscribe to the git/scripts notification lists, to know when to update from the repository.
If you encounter strange results, you can experiment in google.py and let me know if you find a convenient result and want it incorporated in the project.
Thanks :)