[OSM-talk] Working with lat and long simply

Sarah Hoffmann lonvia at denofr.de
Sat Sep 10 20:54:02 UTC 2016


On Sat, Sep 10, 2016 at 04:23:21PM -0400, john whelan wrote:
> I'm not sure that it is an issue.  If the lat and long can be extracted in
> the way that Nomination can handle it isn't an issue.
> 
> The bigger issue at the moment is how do you extract the lat and long
> easily?  Downloading a bit of OSM into JOSM, saving the file as .XML then
> using something like notepad++ to manually extract the values isn't a very
> practical way for nonmappers to extract the values.

For nodes, the location is displayed on osm.org in a format that is
nicely copyable and compatible with search.
For example: https://www.openstreetmap.org/node/1759453982
displays "Location: 51.5171393, -0.094835"
Reverse Query: https://www.openstreetmap.org/search?query=51.5171393,-0.094835
works like a charm.

It's a bit more complicated for areas. Nominatim can help but it's 
not exactly straightforward.
Example:

1. go to https://nominatim.openstreetmap.org/
2. Type "Statue of Liberty"
3. Click on the desired result and then 'Details'.
4. Copy coordinates at 'Centre Point' line.

Sarah

> 
> Cheerio John
> 
> On 10 Sep 2016 4:09 pm, "Imre Samu" <pella.samu at gmail.com> wrote:
> 
> > >...nominatim ...
> > >It is currently inconsistent, and that's a problem for those without a
> > PhD in GIS.
> >
> > If you have a suggestions ->  Nominatim issues:
> > https://github.com/twain47/Nominatim/issues
> >
> >
> > 2016-09-10 21:34 GMT+02:00 john whelan <jwhelan0112 at gmail.com>:
> >
> >> The issue isn't that nomination won't handle lat and long it is that you
> >> cannot cut and paste from the xml code.  "lat='45.472891'
> >> lon='-75.4891002'" doesn't work.  You have to know enough or have the
> >> instructions to hand to strip off the unwanted lat= and lon=.
> >>
> >> It is currently inconsistent, and that's a problem for those without a
> >> PhD in GIS.  One solution could be a write up in the wiki.
> >>
> >> Cheerio John
> >>
> >> On 10 September 2016 at 15:27, michael spreng <talk at osm.datendelphin.net>
> >> wrote:
> >>
> >>> On 10/09/16 17:43, john whelan wrote:
> >>> > However dig it out of the xml code and drop it into Nomination and you
> >>> > get an error.  lat='45.472891' lon='-75.4891002'
> >>> What kind of error do you get? Works for me:
> >>> http://nominatim.openstreetmap.org/search.php?q=45.4729+-75.4891
> >>>
> >>> _______________________________________________
> >>> talk mailing list
> >>> talk at openstreetmap.org
> >>> https://lists.openstreetmap.org/listinfo/talk
> >>>
> >>
> >>
> >> _______________________________________________
> >> talk mailing list
> >> talk at openstreetmap.org
> >> https://lists.openstreetmap.org/listinfo/talk
> >>
> >>
> >

> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk




More information about the talk mailing list