<td>OSM</td>
<td>{{osmLink aPlace}}
</tr>
+ <tr>
+ <td>Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td>
+ <td>{{aPlace.place_id}}</td>
+ </tr>
{{#if aPlace.calculated_wikipedia}}
<tr>
<td>Wikipedia Calculated</td>
<td>OSM</td>
<td>{{osmLink aPlace}}
</tr>
+ <tr>
+ <td>Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td>
+ <td>{{aPlace.place_id}}</td>
+ </tr>
{{#if aPlace.calculated_wikipedia}}
<tr>
<td>Wikipedia Calculated</td>
}
Handlebars.registerHelper({
+ shortOSMType: function(sType) {
+ if (sType === 'node') return 'N';
+ if (sType === 'way') return 'W';
+ if (sType === 'relation') return 'R';
+ return '';
+ },
isaddresses_unused: function (aAddressLine) {
return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : '');
},
<span class="type">({{formatLabel aResult}})</span>
<p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
- <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
+ <a class="btn btn-default btn-xs details" href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
</div>
{{/inline}}
<span class="type">({{formatLabel aResult}})</span>
<p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
- <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
+ <a class="btn btn-default btn-xs details" href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
</div>
{{/inline}}
}
Handlebars.registerHelper({
+ shortOSMType: function(sType) {
+ if (sType === 'node') return 'N';
+ if (sType === 'way') return 'W';
+ if (sType === 'relation') return 'R';
+ return '';
+ },
isaddresses_unused: function (aAddressLine) {
return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : '');
},
<td>OSM</td>
<td>{{osmLink aPlace}}
</tr>
+ <tr>
+ <td>Place Id (<a href="https://nominatim.org/release-docs/develop/api/Output/#place_id-is-not-a-persistent-id">on this server</a>)</td>
+ <td>{{aPlace.place_id}}</td>
+ </tr>
{{#if aPlace.calculated_wikipedia}}
<tr>
<td>Wikipedia Calculated</td>
<span class="type">({{formatLabel aResult}})</span>
<p class="coords">{{aResult.lat}},{{aResult.lon}}</p>
- <a class="btn btn-default btn-xs details" href="details.html?place_id={{aResult.place_id}}">details</a>
+ <a class="btn btn-default btn-xs details" href="details.html?osmtype={{shortOSMType aResult.osm_type}}&osmid={{aResult.osm_id}}">details</a>
</div>
{{/inline}}