1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Fixes #801: Replaced freegeoip which is no longer free with ip-api

This commit is contained in:
Laurent Cozic
2018-09-23 19:45:13 +01:00
parent 861387707a
commit 6a6ee280c3
2 changed files with 5 additions and 4 deletions

View File

@ -101,7 +101,6 @@ class Note extends BaseItem {
if (!('latitude' in note) || !('longitude' in note)) throw new Error('Latitude or longitude is missing');
if (!Number(note.latitude) && !Number(note.longitude)) throw new Error(_('This note does not have geolocation information.'));
return this.geoLocationUrlFromLatLong(note.latitude, note.longitude);
//return sprintf('https://www.openstreetmap.org/?lat=%s&lon=%s&zoom=20', note.latitude, note.longitude);
}
static geoLocationUrlFromLatLong(lat, long) {