Field Note № 006 — Geolocation OSINT
First Light
A street in the Andes, found from the first light on the ridge.
This challenge was one photo of a street. It runs downhill into a valley under a mess of power lines, and at the end of it there is a mountain ridge with only its tops in the sun. The task was to find the exact spot the photo was taken from.
This writeup contains the solution. If you want to try the challenge yourself first, it is available at challenge.bellingcat.com.
Reading the signs
I started with anything that has writing on it. The pole on the left carries a yellow ad for Internet Fibra Hogar with a 0-800 freephone number and the Bitel logo at the bottom. Bitel is a mobile and home internet provider in Peru. An ad on its own can mislead you, but it gave me a country to test.
Right next to it is a blue sign with a green cross. Zoomed in, I can make out a word that starts with something like FARMAN and has an E near the end. I am guessing this might be farmacia. With the green cross it is a pharmacy either way. In Peru you see both farmacia and botica on shop signs, and both are licensed pharmacies.
On the right, next to the cream building, there is a round sign with a crossed-out E and a small plate under it with a tow truck. The E stands for estacionamiento, so it means no parking, and the tow truck means your car gets taken to the pound. In Peru this is called a zona rígida. The yellow paint on the curbs at the corner says the same thing on the ground.
The plate on the red car fits too, with the current Peruvian layout of three characters, a dash and three digits. Add the dry brown hills and the houses climbing all the way up the slope, and this is a city high in the Andes. Cusco was my first guess, but other Andean cities like Huancayo and Ayacucho also have houses packed up dry hillsides. I wanted the mountains to prove it.
Reading the light
Before matching mountains I wanted to know which way the camera was facing, and the light gives that away. Only the very tops of the ridge are lit, in the orange colour you only get when the sun is very low. The slopes below them and the whole street are in shadow. So the sun was only a few degrees above the horizon, which means just after sunrise or just before sunset.
The light hits the peaks from the left, and the sky is brighter on the left of the frame. So the sun was behind the photographer and to the left. Cusco is in the tropics, so the sun rises somewhere in the east and sets somewhere in the west all year round. That leaves two options. Either it is morning and the camera faces somewhere between south and west, or it is evening and it faces somewhere between north and east. The skyline would decide which.
Matching the skyline
Cusco sits in a valley with ridges on both sides, so if this is Cusco the photo has to be looking across the valley at one of them. I rendered the view from candidate spots in PeakFinder and in Google Earth's 3D mode and compared the ridge lines with the photo. Looking south from the north side of the city, it fits. The rounded high point in the middle of the frame is Araway Qhata and the narrow peak on the left, further away and higher, is Anahuarque.
With two named peaks I could work in bearings. Araway Qhata sits almost exactly in the middle of the frame, so the camera faces about 180°, due south. That settles the question from the light. Facing south, a sun behind and to the left is in the east or northeast, which makes it a sunrise. This is a morning photo.
To check it I set ShadeMap to Cusco on a dry-season morning. The date is a guess, the geometry is the point. On 1 July at 06:25 the sun is 2.1° above the horizon at 65.6°, east-northeast. Most of the valley is still in shadow while parts of the high ground already have sun, which is what the photo shows. The brown hills fit the dry season too. In the Street View imagery from March, in the rainy season, the same hills are green.
Finding the street
The photo gives one more useful number. The far end of the street sits about 7° left of the middle of the frame, so the street itself runs at about 172°, a little east of south. It also stays straight for a long way. So I was looking for a long, straight road on that bearing, running down toward the valley from the north side.
Instead of scrolling around Street View, I asked OpenStreetMap. In Overpass Turbo I took every road on the north side of the valley and kept only the ones that stay within 15 m of a straight line at 172° for at least 150 m.
Show the Overpass query
Paste this into overpass-turbo.eu and press Run. For each road it measures two things in metres: how far the road drifts sideways from a line at 172° and how far it runs along that line. The constants turn latitude and longitude into metres at Cusco's latitude, turned to 172°. The results come back as a table instead of on the map.
[out:csv(name, osm_id, drift_m, length_m; true; ",")][timeout:120];
way[highway~"^(primary|secondary|tertiary|unclassified|residential|living_street)$"]
(-13.528,-71.990,-13.505,-71.930)->.streets;
foreach.streets->.w(
node(w.w)->.n;
if (n.max(lon()*107181+lat()*15389)
- n.min(lon()*107181+lat()*15389) < 15
&& n.max(lon()*15063-lat()*109508)
- n.min(lon()*15063-lat()*109508) > 150)
{
make street name=w.u(t["name"]), osm_id=w.u(id()),
drift_m=n.max(lon()*107181+lat()*15389)
- n.min(lon()*107181+lat()*15389),
length_m=n.max(lon()*15063-lat()*109508)
- n.min(lon()*15063-lat()*109508);
out;
}
);
Five roads came back, and four of them are on the same line. Avenida Retiro, Tacna, Pasaje Retiro and Avenida Mateo Pumacahua are one long straight street that changes its name every few blocks. The fifth, Calle Umanchata, is about two kilometres to the west, where Araway Qhata would be off to the left instead of straight ahead.
Following that line uphill, the next piece is too short to pass the 150 m filter. OpenStreetMap calls it Avenida Puente de Retiro and Google Maps labels it Callejón Retiro. It sits at longitude -71.969, the same as the summit of Araway Qhata, which is why the peak is due south of the camera.
Then Street View. At the corner of Callejón Retiro and Calle Lucrepata, looking down the street, everything lines up.
The signs gave the country. The light gave the direction and the time of day. The skyline and one OpenStreetMap query gave the street.
If you want another one to work on, try Challenge 0.1 at ctf.lavirent.com. It is the OSINT challenge I built for Lavirent. It starts with two photos to geolocate, and the second one unlocks a trail of clues.