<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="libosmium/2.20.0">
<node id="123456789" version="1" timestamp="2024-09-18T23:11:44Z" user="me" lat="45.1234" lon="8.1234">
<tag k="attr:housenumber" v="12345"/>
<tag k="attr:street" v="Dummy Street Name"/>
<tag k="attr:postcode" v="123456"/>
<tag k="attr:city" v="Dummy City Name"/>
<tag k="attr:state" v="CA"/>
<tag k="attr:country" v="United States"/>
<tag k="attr:country_code" v="us"/>
</node>
</osm>
Trying to import the above XML (with real values) into my nominatim instance. I will import the XML file with nominatim add-data --file test.xml
and see that Processed 1 nodes in 0s - 1/s
is present in the output.
However, when I go to index, all ranks show 0/0 and the address I’m trying to import never actually makes it to the placex table.
I’m using pyosmium writer = osmium.SimpleWriter('filename.xml')
to generate the XML file. A user will make a request with
{
"housenumber": str,
"street": str,
"postcode": str,
"city": str,
"state": str
}
and the python script I have will generate the above XML.