@@ -28,16 +28,16 @@ First, create a SQLite database and insert rows from that spreadsheet using `sql
28
28
sqlite-utils insert data.db data data.csv --csv
29
29
```
30
30
31
- Now, geocode it using OpenStreetMap's Nominatum geocoder.
31
+ Now, geocode it using OpenStreetMap's Nominatim geocoder.
32
32
33
33
``` sh
34
- geocode-sqlite nominatum data.db data \
34
+ geocode-sqlite nominatim data.db data \
35
35
--location=" {address}, {city}, {state} {zip}" \
36
36
--delay=1 \
37
37
--user-agent=" this-is-me"
38
38
```
39
39
40
- In the command above, you're using Nominatum , which is free and only asks for a unique user agent (` --user-agent ` ).
40
+ In the command above, you're using Nominatim , which is free and only asks for a unique user agent (` --user-agent ` ).
41
41
42
42
This will connect to a database (` data.db ` ) and read all rows from the table ` data ` (skipping any that already
43
43
have both a ` latitude ` and ` longitude ` column filled).
@@ -57,7 +57,7 @@ The CLI currently supports these geocoders:
57
57
- ` bing `
58
58
- ` googlev3 `
59
59
- ` mapquest ` (and ` open-mapquest ` )
60
- - ` nominatum `
60
+ - ` nominatim `
61
61
62
62
More will be added soon.
63
63
@@ -85,10 +85,10 @@ As with the CLI, this assumes you already have a SQLite database and a table of
85
85
86
86
``` python
87
87
from geocode_sqlite import geocode_table
88
- from geopy.geocoders import Nominatum
88
+ from geopy.geocoders import Nominatim
89
89
90
90
# create a geocoder instance, with some extra options
91
- nominatum = Nominatum (user_agent = " this-is-me" , domain = " nominatum .local.dev" , scheme = " http" )
91
+ nominatim = Nominatim (user_agent = " this-is-me" , domain = " nominatim .local.dev" , scheme = " http" )
92
92
93
93
# assuming our database is in the same directory
94
94
count = geocode_table(" data.db" , " data" , query_template = " {address} , {city} , {state} {zip} " )
0 commit comments