New answers tagged maps
The actual answer is a mixture of the other answers/comments you've already received. MySQL is limited I see from the tags you're using MySQL, the problem is, it can only do bounding boxes until 5.6, not the actual geometries. http://dev.mysql.com/doc/refman/5.0/en/spatial-relation-functions.html If you want to use the bounding box: SELECT * FROM `test` ...
From the longitude and latitude coordinates, you can create spatial structures (Points) in your (spatial) database, like PostGIS. (see ST_GeomFromText) Instead of your bussId | longitude | latitude, you would have a bussId, Point database called BussSpatial. You can then just query the following var request = 'SELECT bussID FROM BussSpatial ...
The bounding box query for SQL is(Using PDO) $sql ="SELECT bussid FROM tablename WHERE(latitude BETWEEN ? AND ? )AND (longitude BETWEEN ? AND ?)"; $stmt = $dbh->prepare($sql); // Assign parameters $stmt->bindParam(1,$minLat); $stmt->bindParam(2,$maxLat); $stmt->bindParam(3,$minLng); $stmt->bindParam(4,$maxLng); WHERE parameters come from ...
Try this iframe src: http://mapsengine.google.com/map/u/0/embed?mid=zYk_BmXXTdxw.k83snDbX5SJc&z=15 z=15 "GET" parameter for zoom level. Edit as your need.
Harshit, this is a bit of an open-ended question where I'm not sure what is your current setup, what technologies are you using or going to use, etc. Perhaps if give us more details, we can help you more specifically. With such a general question, I give you a general answer: Both HERE and Google Maps have JS APIs. I would start with studying those: HERE: ...
it seems you can use a &z=nn parameter now Try this: <iframe src="http://mapsengine.google.com/map/u/0/embed?mid=zYk_BmXXTdxw.k83snDbX5SJc&z=9" width="745" height="480"></iframe>
Top 50 recent answers are included