pelias-deprecated / compare-v1

simple frontend app for comparing apples
https://pelias.github.io/compare/
2 stars 0 forks source link

Add geocode.earth production and dev endpoints #14

Closed orangejulius closed 6 years ago

orangejulius commented 6 years ago

This replaces the Mapzen Search prod_build and dev endpoints with production and dev for geocode.earth.

A new API key with a small rate limit for geocode.earth has been created specifically for the compare app.

For now, production Mapzen Search remains as the first endpoint, since it is still up. However, it will no doubt soon go away.

Connects https://github.com/pelias/pelias/issues/703

missinglink commented 6 years ago

I think you'll also need to bump var currentVersion = xxx.

If I remember correctly, I set up a version number so that, your localStorage values will be used so long as the currentVersion is the same, if the server serves a document with a higher currentVersion than in your localStorage then your localStorage will be replaced with the new default values.

tl;dr we need the currentVersion++ or existing users existing localStorage won't be overridden by the new defaults.

orangejulius commented 6 years ago

Version bump added, good catch