Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Argentina country_code abbreviation is wrong #5157

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Argentina country_code abbreviation is wrong #5157

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: jenciso
[Submitted to the original trac issue database at 8.26pm, Tuesday, 15th April 2014]

Hi

I'm using Nominatim 2.2 version for reverse query. In this request (see below) the response for country_code is wrong, it should be "ar" instead "aq". I would like to know if it could be fixed modify someone row in the postgre table.

Thanks

[root@1yt ~]# curl -vs 'http://localhost/nominatim/reverse.php?format=xml&lat=-34.612869&lon=-58.4459789&zoom=18&addressdetails=1&accept-language=pt-BR'

  • About to connect() to localhost port 80 (#0)
  • Trying 127.0.0.1... connected
  • Connected to localhost (127.0.0.1) port 80 (#0)

GET /nominatim/reverse.php?format=xml&lat=-34.612869&lon=-58.4459789&zoom=18&addressdetails=1&accept-language=pt-BR HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.6.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: localhost
Accept: /

< HTTP/1.1 200 OK
< Date: Thu, 17 Apr 2014 17:25:52 GMT
< Server: Apache
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: OPTIONS,GET
< Cache-Control: max-age=604800
< Expires: Thu, 24 Apr 2014 17:25:52 GMT
< Vary: Accept-Encoding
< Content-Length: 848
< Connection: close
< Content-Type: text/xml; charset=UTF-8
<

* Closing connection #0 Felipe Vallese, Caballito, Ciudad Autnoma de Buenos Aires, C1414DLC, ArgentinaFelipe ValleseCaballitoCaballitoCiudad Autnoma de Buenos AiresCiudad Autnoma de Buenos AiresC1414DLCArgentinaaq
@openstreetmap-trac
Copy link
Author

Author: andersg
[Added to the original trac issue at 8.12am, Tuesday, 22nd April 2014]

Hi,

This is recently solved by this commit osm-search/Nominatim@589bad809ef11bd8fe94ffa0

To update an install apply this patch. Then do a to apply changes ./utils/setup.php --enable-diff-updates --create-functions --create-partition-functions

Find the place_id for Argentina, Norway and Australia and do the following:

//for each country
update placex set indexed_status = 2 where place_id = <country place_id>;

./utils/update --index --index-instances 2

Check if country codes are correct for countries. Then do this which will take some time (1-2 days with a full planet on a decent machine):

//for each country
select place_force_update(<country place_id>);

./utils/update --index --index-instances 2

/Anders

Replying to [ticket:5157 jenciso]:

Hi

I'm using Nominatim 2.2 version for reverse query. In this request (see below) the response for country_code is wrong, it should be "ar" instead "aq". I would like to know if it could be fixed modify someone row in the postgre table.

Thanks

[root@1yt ~]# curl -vs 'http://localhost/nominatim/reverse.php?format=xml&lat=-34.612869&lon=-58.4459789&zoom=18&addressdetails=1&accept-language=pt-BR'

  • About to connect() to localhost port 80 (#0)
  • Trying 127.0.0.1... connected
  • Connected to localhost (127.0.0.1) port 80 (#0)

GET /nominatim/reverse.php?format=xml&lat=-34.612869&lon=-58.4459789&zoom=18&addressdetails=1&accept-language=pt-BR HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.6.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: localhost
Accept: /

< HTTP/1.1 200 OK
< Date: Thu, 17 Apr 2014 17:25:52 GMT
< Server: Apache
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: OPTIONS,GET
< Cache-Control: max-age=604800
< Expires: Thu, 24 Apr 2014 17:25:52 GMT
< Vary: Accept-Encoding
< Content-Length: 848
< Connection: close
< Content-Type: text/xml; charset=UTF-8
<

* Closing connection #0 Felipe Vallese, Caballito, Ciudad Autnoma de Buenos Aires, C1414DLC, ArgentinaFelipe ValleseCaballitoCaballitoCiudad Autnoma de Buenos AiresCiudad Autnoma de Buenos AiresC1414DLCArgentinaaq

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant