digidem / osm-p2p-server

Peer-to-peer OpenStreetMap API v0.6 Server for osm-p2p-db
BSD 2-Clause "Simplified" License
87 stars 10 forks source link

Coerce lat, lon to number and back to string #18

Closed gmaclennan closed 8 years ago

gmaclennan commented 8 years ago

OSM XML passes lat and lon as strings, but in osm-p2p-db these should be stored as numbers.

We should coerce lat and lon to numbers when putting/updating and convert back to string as part of xml conversion when reading

ghost commented 8 years ago

addressed in 1.12.0: https://github.com/digidem/osm-p2p-server/commit/2804036fef67a043580cd3c0cbf0b6a441511b2a