File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -919,7 +919,7 @@ declare module "@mapbox/mapbox-sdk/services/geocoding-v6" {
919919 * Bias local results based on a provided coordinate location or a
920920 * user's IP address.
921921 */
922- proximity ?: Coordinates | "ip" ;
922+ proximity ?: MapiRequestCoordinates | "ip" ;
923923 /**
924924 * Filter results by feature types.
925925 */
Original file line number Diff line number Diff line change @@ -301,6 +301,22 @@ geocodeServiceV6
301301 } ) ;
302302 } ) ;
303303
304+ geocodeServiceV6 . forwardGeocode ( {
305+ query : "Berlin" ,
306+ proximity : [ 13.405 , 52.52 ] ,
307+ } ) ;
308+
309+ geocodeServiceV6 . forwardGeocode ( {
310+ query : "Berlin" ,
311+ proximity : "ip" ,
312+ } ) ;
313+
314+ geocodeServiceV6 . forwardGeocode ( {
315+ query : "Berlin" ,
316+ // @ts -expect-error - object form should not be accepted for request proximity
317+ proximity : { longitude : 13.405 , latitude : 52.52 } ,
318+ } ) ;
319+
304320const optimizationService : OptimizationService = Optimization ( config ) ;
305321optimizationService . getOptimization ( {
306322 profile : "driving" ,
You can’t perform that action at this time.
0 commit comments