- place.set('place_id', result.names['ref'])
- place.set('lat', str(result.centroid.lat))
- place.set('lon', str(result.centroid.lon))
+ place.set('ref', result.names['ref'])
+ elif label_parts:
+ # bug reproduced from PHP
+ place.set('ref', label_parts[0])
+ place.set('lat', f"{result.centroid.lat:.7f}")
+ place.set('lon', f"{result.centroid.lon:.7f}")