Ticket #574 (new enhancement)

Opened 6 years ago

Last modified 7 months ago

Parse more lat/lon formats

Reported by: ColinMarquardt Owned by: rails-dev@…
Priority: major Milestone:
Component: website Version:
Keywords: search lat/lon format Cc:

Description

It would be nice if the Search field on the OSM main page would allow some more formats for specifying lat/lon. E.g., I'm missing

51.9 -8.47 (I need to put a comma to separate them in OSM) -19°58´33.26" 23°25´41.52"

Both are supported in Google Maps.

TIA

Colin

Change History

comment:1 Changed 6 years ago by ColinMarquardt

  • Component changed from admin to namefinder

comment:2 Changed 2 years ago by GoemonGPS

  • Priority changed from minor to major

I miss this feature as well! In another ticket ( #1805) the issue was solved for plain coordinates.

Coordinate formats I'd like to have parsed are:

Normal GPS Coordinates (WGS84 Datum)
Decimal 12.3456 12.345
DDD MM.MMM N 12° 04.567 E 012° 34.567
DDD MM SS.SSS N 12° 3' 45.678" E 12° 34' 05.678"

with support of + and - for the NSEW and common separators like space, comma, semicolon.

UTM (WGS84 Datum)
33U E 345678 N 5671234

comment:3 Changed 7 months ago by iandees

  • Owner changed from david@… to rails-dev@…
  • Component changed from namefinder to website

This could be done in .js before it hits the server (matching a couple regexes), or in the the /geocoder/search_geonames endpoint in the railsport.

Note: See TracTickets for help on using tickets.