I am trying out the OpenStreetMap Nominatim reverse-geocoder RESTFul API.
Is there a definitive explanation of the address schema returned from the API? Some locations have different attributes in the ‘addressparts’ block.
For example, for Seattle, Nominatim includes “suburb” and “city” attributes.
<addressparts>
<house_number>725</house_number>
<road>9th Avenue</road>
<suburb>First Hill</suburb>
<city>Seattle</city>
<county>King</county>
<state>Washington</state>
<postcode>98104</postcode>
<country>United States of America</country>
<country_code>us</country_code>
</addressparts>
However, for New York City, it returns “neighborhood” and “state_district” attributes.
<addressparts>
<address29>N.Y. Grill & Deli</address29>
<house_number>208</house_number>
<road>Rivington Street</road>
<neighbourhood>Lower East Side</neighbourhood>
<state_district>New York City</state_district>
<county>New York</county>
<state>New York</state>
<postcode>10002</postcode>
<country>United States of America</country>
<country_code>us</country_code>
</addressparts>