Forum Academy Marketplace Showcase Pricing Features

Google Map: adresss in map?

Is there a way to know if an adress is inside the current view of a map ?
Or a way to get the map size (width and height) in kilometers ?

What I would like to achieve is something like airbnb: when the suer drag the map, it updates the search to only display results that are in the map.

Is it possible ?

Thanks !

I couldn’t figure out how to determine the size of the map view but you can base a search off of distance from the map center.

1 Like


I have the same issue and could not solve it yet.

A search based on the distance from the center is a good start but does not solve the problem, because we don’t know what radius is needed to cover the whole map. It depends on the current zoom level of the map, and I was not able to retrieve it. It is possible to set the zoom level, but I cannot find how to access the current zoom level…

I think it would be quite simple to make this field accessible, and it would open many possibilities for us to play with maps… any chance we get an update on this?

The distance in km that the map covers also depends on the width / height of the google map object itself, in pixel. So we would need to know, for each zoom level, how many kilometers is one pixel (the scale of the map).

Well, it would be easier to directly know the bounding box (i,e. position of the top left and bottom right corners, or the top left corner + width and height in km)…

There is a lot of place for improvement here, I would really appreciate to have new options to better control and play with maps!

This topic was automatically closed after 70 days. New replies are no longer allowed.