We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c52770a commit d490057Copy full SHA for d490057
lib/index.js
@@ -682,10 +682,6 @@ MapboxGeocoder.prototype = {
682
coords.reverse();
683
}
684
685
- // client only accepts one type for reverseGeocode, so
686
- // use first config type if one, if not default to poi for v5 and address for v6
687
- const defaultType = this.options.version === 'v6' ? ["address"] : ["poi"];
688
- config.types = config.types ? [config.types[0]] : defaultType;
689
config = extend(config,
690
this.options.version === 'v6' ? { longitude: coords[0], latitude: coords[1]} : { query: coords },
691
{limit: 1 }
0 commit comments