Skip to content

Commit

Permalink
Use continents from known source (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Aug 27, 2024
2 parents 01eca2d + ad05c2a commit b4fb538
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ in/airports.dat: | in
in/countries.dat: | in
wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat -O $@

# https://gist.githubusercontent.com/hrbrmstr/91ea5cc9474286c72838/raw/59421ff9b268ff0929b051ddafafbeb94a4c1910/continents.json
in/continents.geojson: continents.geojson.gz | in
gunzip -c $< > $@

Expand Down
Binary file modified continents.geojson.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion internal/parsers/db/continents/geojson/calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/paulmach/orb/planar"
)

const continentProperty = "Continent"
const continentProperty = "CONTINENT"

// PointContinent goes through all polygons and returns the continent
// in which the point is located.
Expand Down
Binary file modified pkg/locodedb/data/locodes.csv.bz2
Binary file not shown.

0 comments on commit b4fb538

Please sign in to comment.