question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possibility to pass lat and lng in url using router

See original GitHub issue

Feature ⚡️

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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Haroenvcommented, Jun 8, 2020

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

0reactions
Haroenvcommented, Jul 24, 2020

Since Vue InstantSearch v3 this has been fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found