opencage, to random
@opencage@en.osm.town avatar

Let's close out the week with a geo thread. This time rather than

Today's topic is one that doesn't get as much respect as it should.
Ask most people about geocoding, they automatically think forward geocoding - turning text (an address or placename) into coordinates.

Today though we'll cover the opposite: reverse geocoding

1/n

opencage,
@opencage@en.osm.town avatar

2/ Reverse geocoding is turning coordinates (latitude, longitude) into location info.

So 52.3877830, 9.7334394 becomes "Philipsbornstraße 2, 30165 Hanover, Germany" as you can see on our demo page.

https://opencagedata.com/demo

Those are the coordinates of OpenCage HQ, BTW

So far, so simple, right?

#geoeducation

opencage,
@opencage@en.osm.town avatar

5/ Reverse geocoding may seems simple, but there are lots of things to consider.

First up, different parts of world are structured very differently, with different admin hierarchies and ways to show addresses.

We format the address as expected locally.

BTW - the templates we use to do it are open sourced: https://github.com/OpenCageData/address-formatting Pull requests gladly received!

#geoeducation

opencage,
@opencage@en.osm.town avatar

7/ One small reverse geocoding pet peeve - people often send our geocoding API ultra precise coordinates. Like nanometer level.

There is no real need for more than 6 places past the decimal, see:

https://en.wikipedia.org/wiki/Decimal_degrees

#geoeducation

opencage, to random German
@opencage@en.osm.town avatar

After a week off to enjoy the summer this week's thread again focuses on OpenStreetMap

The OpenStreetMap community is massive (and growing) 💪, global 🌍, and very dynamic 🕺💃!

The OSM database has millions of edits per day. Lots of things are happening all the time. But ... that can also be a bit overwhelming. How do we stay aware of what's happening?

1/n

opencage, to random
@opencage@en.osm.town avatar

This month OpenStreetMap - the global crowdsourced open geodata project - celebrates its 19th birthday 🎂🎉, so the next few weeks our threads will focus on the amazing OSM community.

Our geocoding API is built on OpenStreetMap, and for many years now we've been interviewing OpenStreetMap communities small and large over on our blog.

Join us on a virtual trip to see how OSM works around the world 🌎🌍🌏
1/n

opencage,
@opencage@en.osm.town avatar

12/ Obviously there are many, many more OpenStreetMap communities large and small all around the world than those we've had the chance to speak with so far.

Please get in touch if you'd like to share your local story on our blog 🙏🏾

We'd love to hear from you: https://opencagedata.com/contact

#OpenStreetMap #geoeducation

opencage, to random
@opencage@en.osm.town avatar

Time for this week's geothread, a dose of rather than

Today we thought we'd cover a common geocoding use case: extracting the coordinates from images 📸 and geocoding the location the image was taken.

1/n

opencage,
@opencage@en.osm.town avatar

2/ When you take a picture by default most digital cameras record all sort of meta info, and store that data in the resulting image file.

Things like type of camera, exposure time, etc.

This is known as "EXIF data". Exif stands for "Exchangeable image file format"

https://en.wikipedia.org/wiki/Exif

opencage,
@opencage@en.osm.town avatar

3/ Most photo editing software lets you see or write to the Exif data, for example you can fill in fields like copyright and name of the photographer

opencage,
@opencage@en.osm.town avatar

4/ There are also many sites online that let you see a photo’s Exif data. Here’s an example: https://jimpl.com

Image uploaded and some of the Exif data is displayed

opencage,
@opencage@en.osm.town avatar

5/ These days the most widely used cameras 📸 are mobile phones 📱 and phones generally know their location (from GPS, cell, wifi, etc).

Many phones record this location info in the exif data. We can extract and reverse geocode the location the photo was taken.

opencage,
@opencage@en.osm.town avatar

6/ How? Two steps:

  1. get the coordinates from the exif data in the image

  2. reverse geocode the coordinates into useful location information

Let's show a code example in javascript

opencage,
@opencage@en.osm.town avatar

8/ 🚨 note: an image might not have this data.

It may not have been recorded or might have been removed later. Newer operating systems make it easy to turn geolocation recording on and off, in general or for a specific photo

opencage,
@opencage@en.osm.town avatar

10/ Now we pass the decimal coordinates to our geocoding API and get the location 🙌

opencage,
@opencage@en.osm.town avatar

11/ 🚨 WAIT!!! 🚨

The precision of the Exif coordinates depends on the tech (GPS, cell, etc) used to capture the location. So they may not be perfectly precise.

But also showing a precise location might not be appropriate or have privacy implications.

See our guide on how to show less precise location like just the city or neighbourhood:

https://opencagedata.com/guides/how-to-preserve-privacy-by-showing-only-an-imprecise-location

opencage,
@opencage@en.osm.town avatar

12/ Precise geocoding might not make sense. Example: a tourist taking a picture right by the Eiffel Tower 🗼 in Paris 🇫🇷, probably wants their image geocoded as "Eiffel Tower" not the exact street address.

We offer this as a service to several large image processing customers.

But the location is right by the Eiffel Tower
Location geocoded to "Eiffel Tower, Paris, France"

opencage, to random German
@opencage@en.osm.town avatar

In this week's thread we take a little break from to switch to 🌍🧑‍🎓

Today we clarify an oft confused and conflated topic that we get asked about a lot: the difference between geocoding and IP geolocation

1/n

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines