}
static void
-map_set_place_information(osm_way *s, osm_place *mp, osm_place *sp, PoiInfo *p)
+map_set_place_information(osm_way *s, osm_place *mp, osm_place *sp)
{
gchar buffer[256];
if (!s && !mp && !sp) {
- snprintf(buffer, sizeof(buffer), "Location unknown. %s%s",
- (p && p->label) ? "Near: " : "",
- (p && p->label) ? p->label : "");
+ snprintf(buffer, sizeof(buffer), "Unknown location");
} else {
/* oh, fun */
- snprintf(buffer, sizeof(buffer), "On %s%s%s%s%s%s%s%s%s%s%s",
+ snprintf(buffer, sizeof(buffer), "On %s%s%s%s%s%s%s%s%s",
s ? s->name ? s->name : _("unknown") : "?",
s ? s->ref ? ", " : "" : "",
s ? s->ref ? s->ref : "" : "",
s ? s->int_ref ? ", " : "" : "",
s ? s->int_ref ? s->int_ref : "" : "",
- (p && p->label) ? " near " : "",
- (p && p->label) ? p->label : "",
(sp && sp->name) ? " in " : "",
(sp && sp->name) ? sp->name : "",
(mp && mp->name) ? " in " : "",
{
gint ilat, ilon;
gdouble lat,lon, dist;
-PoiInfo *p;
gboolean fs;
static gboolean inp=FALSE;
_map_location_known=map_loc.street ? TRUE : FALSE;
_map_location_dist=map_loc.street ? map_loc.street->dist : 900000.0;
-#if 0
-p=poi_find_nearest(lat, lon);
-#else
-p=NULL;
-#endif
fs=osm_find_nearest_place(NODE_PLACE_SUBURB, ilat, ilon, &map_loc.secondary);
if (fs==TRUE && map_loc.secondary && map_loc.secondary->isin!=0) {
}
-map_set_place_information(map_loc.street, map_loc.primary, map_loc.secondary, p);
+map_set_place_information(map_loc.street, map_loc.primary, map_loc.secondary);
osm_progress_set_widget(_db, NULL);
inp=FALSE;
}