Skip to content

Commit 160b14b

Browse files
author
perliedman
committed
Remove trailing slash for Nominatim serviceUrl. Close #95.
1 parent 67f856f commit 160b14b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geocoders/nominatim.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
},
3434

3535
geocode: function(query, cb, context) {
36-
Util.jsonp(this.options.serviceUrl + 'search/', L.extend({
36+
Util.jsonp(this.options.serviceUrl + 'search', L.extend({
3737
q: query,
3838
limit: 5,
3939
format: 'json',
@@ -60,7 +60,7 @@ module.exports = {
6060
},
6161

6262
reverse: function(location, scale, cb, context) {
63-
Util.jsonp(this.options.serviceUrl + 'reverse/', L.extend({
63+
Util.jsonp(this.options.serviceUrl + 'reverse', L.extend({
6464
lat: location.lat,
6565
lon: location.lng,
6666
zoom: Math.round(Math.log(scale / 256) / Math.log(2)),

0 commit comments

Comments
 (0)