Skip to main content

Geo-spatial Search with Geocoder and Google Maps Discussion

General • Asked by Chris Oliver
7a0701f73e80da8b466634f58a0dcb33

Awesome episode! Really enjoying the maps and geolocation episodes!

Thanks, Chris!


36287205bd288895d46910d7bd9d8a87

I really love de geolocation series,

Are you going to keep uploading more videos about this series?

Ce795239ba5dd2384fc2f88ffaff5451

Sure can, do you have any topics you're curious about?

36287205bd288895d46910d7bd9d8a87

hello!!
yes, I would like to know how to refresh the markers each time that the map is dragged without refresh the whole map.

that would be amazing

regards!


764ec574d65acf8d898c2f4cada01cf9

2e2231c42b734347ef18ca82f12506d7

Love this episode!! Thanks Chris! Question though are there any disadvantage in using geocoder? And instead relying on Google Maps Javascript API?


7a0701f73e80da8b466634f58a0dcb33

Another cool idea, would be the ability to update the map with locations near a user based on their location/ip address, either automatically or with a manual reload. I know this is difficult to do in development, but would love to see this.

Ce795239ba5dd2384fc2f88ffaff5451

Not as difficult as you might think. The HTML5 geocoding API will get you an IP address quickly, so you can send that over as a different param and pass that into the .near() method. This will be a great screencast. :D


Cfb1e7021f0e0cb6723368171a843e5c

B4fc06bbb5bb2020591348c1c34af8d1

Would be awesome if it does the "Redo Search in this area" without clicking on the button


B1445e244bc22d10af9103fd823de1a6

Does this series cover displaying the distance between two markers or coordinates?

Ce795239ba5dd2384fc2f88ffaff5451

I mentioned the geocoder gem comes with some calculations methods. One of those is for distance between two points. You can use that, just check the readme.

B1445e244bc22d10af9103fd823de1a6

Let me rephrase my question :)

Does this series cover displaying of route between two markers? Suppose I select Marker A and then select Marker B then the route should be displayed between the two, is this feature covered in this series?

Ce795239ba5dd2384fc2f88ffaff5451

Not at the moment, but that's as simple as adding a couple lines of code to your JS. Check out the route examples: https://hpneo.github.io/gma...


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

More of a social being? We're also on Twitter and YouTube.