Possibility to pass lat and lng in url using router
See original GitHub issueFeature ⚡️
What is your use case for such a feature?
I’m trying to pass lat
and lng
to use as aroundLatLng
in URL but it seems to be not supported by the router.
Currently routeToState allow to pass parameters like page
, refinementList
or query
but no aroundLatLng
. I was trying to use configure
instead but it seems to be not supported.
What is your proposal
Allow passing aroundLatLng
inside routeToState(routeState)
response, or (preferred) allow passing parameters inside configure
so state.configure.aroundLatLng
can be passed as a response.
What is the version you are using?
2.6.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How do I link to Google Maps with a particular longitude and ...
I have a small application that gives the current location: longitude and latitude. Now I have to browse to google ...
Read more >Get Started | Maps URLs - Google Developers
Using Maps URLs, you can build a universal, cross-platform URL to launch Google Maps and perform searches, get directions and navigation, and display...
Read more >Options for Routing to Fulcrum Records - FulcrumApp
If we have values for the record's location and our current location, use OPENURL - passing in all four coordinates into the URL...
Read more >GPS Geoplaner - GeoConverter | Routeplanner online
Link Creator −> Geoplaner URL + waypoints (latitude, longitude, ... northing; or Latitude and Longitude with three possible notations: decimal degrees: ...
Read more >OSRM API Documentation
Passing any option=value is optional. polyline follows Google's polyline format ... Using polyline: curl 'http://router.project-osrm.org/route/v1/driving/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Configure is indeed not supported in this version (it is added in the next major version, if you are not using server side rendering, you can use beta.0). To work around this, it’s best to create a custom widget specifically for lat/lng. An example connector like this is the geo search widget (note that you’ll need to change the actual parameter to
aroundLatLng
):https://github.com/algolia/instantsearch.js/blob/master/src/connectors/geo-search/connectGeoSearch.js#L271-L305
Since Vue InstantSearch v3 this has been fixed.