Skip to content
Snippets Groups Projects
Commit dc00cabf authored by Alessio Fanelli's avatar Alessio Fanelli
Browse files

Add batch reverse geocoding in the docs

parent 99a449f1
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,10 @@ If you have just added geocoding to an existing application with a lot of object
rake geocode:all CLASS=YourModel
If you need reverse geocoding instead, call the task with REVERSE=true:
rake geocode:all CLASS=YourModel REVERSE=true
Geocoder will print warnings if you exceed the rate limit for your geocoding service. Some services — Google notably — enforce a per-second limit in addition to a per-day limit. To avoid exceeding the per-second limit, you can add a `SLEEP` option to pause between requests for a given amount of time. You can also load objects in batches to save memory, for example:
rake geocode:all CLASS=YourModel SLEEP=0.25 BATCH=100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment