google-maps-markers

Want to Display Direction Between 100 Address on Google Maps

和自甴很熟 提交于 2019-12-02 17:26:27
问题 I want to display optimize route for about 100 addresses on the Google maps. I have searched for that but Google gives only 8 addresses per request in free and 23 addresses in Paid API. Than I saw one website who is doing same thing using unlimited address and named "Route4Me". The case is now I have all addresses's lati and longi in optimize manner. I just want to show a route using these data on Google maps. This situation is not exact as to route from A to B in Google Maps. I want to map

Google Maps API - Radius search for markers using Places?

断了今生、忘了曾经 提交于 2019-12-02 17:21:37
I have set up a Google Map using API v3. The map has a number of markers with infoboxes attached. I am looking to set up a search box outside of the map for the user to input an address and then have the nearest markers returned based on the distance away (such as a radius search). From the API documentation I think I need to uses the Places services. Can anyone point me in the right direction? To do a radius search with the API, use the Geometry Library google.maps.geometry.spherical.computeDistanceBetween method to calculate the distance between each marker and the geocoded result from the

Is it possible to drag Google maps marker and drop it in ListView?

帅比萌擦擦* 提交于 2019-12-02 16:50:11
问题 I am trying to catch data from Google Maps Marker, and want to know is it possible to drag Markers to ListView(below link) then access the (lat, lng) or place name etc. data ? http://imgur.com/l4DKnZu 回答1: Here is a possibility. It's not specifically Android, but it might be useful, maybe. So, when the client drags the marker 60 pixel from the border of the map, the map starts panning. So, at that 60 pixel point, I get the markers out. Okay for you? <style> table { width: 100px; float: right;

Google Maps V3: Only show markers in viewport - Clear markers issue

做~自己de王妃 提交于 2019-12-02 16:23:24
I like to create a map with Google Maps that can handle large amounts of markers (over 10.000). To not slow down the map I've created a XML-file that only outputs the markers that are inside the current viewport. First, I use initialize() to setup the map options: function initialize() { var myLatlng = new google.maps.LatLng(51.25503952021694,3.27392578125); var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addListener(map, 'tilesloaded', function () {

Why only the marker of the last input appears in Google Places Autocomplete?

五迷三道 提交于 2019-12-02 16:06:24
问题 Hi, i'm using Google Places Autocomplete with 4 inputs, autocomplete works fine, but only the marker and infowindow of the last input appears. Can someone tell me where is the problem and why the markers and infowindows of other inputs don't appear on the map? Any answer is appreciated. <!DOCTYPE html> <html> <head> <title>Place Autocomplete</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <script src="https://maps.googleapis.com/maps/api/js

Place Markers from Name, Address and Post Code

三世轮回 提交于 2019-12-02 15:51:34
In my domain model, for the entities in question, I have the: Name of the place (e.g. Waterstones Wakefield) The Street Addresses (e.g. 61-62 Bishopgate Walk) And the Post Code (e.g. WF1 1YB) From the above three pieces of information, how can I get a Marker placed on the Map? I am using Google Maps API 3. Thanks grigno Try this example: HERE THE ORIGINAL HTML <body onload="initialize()"> <div> <input id="address" type="text" value="Sydney, NSW"> <input type="button" value="Geocode" onclick="codeAddress()"> </div> <div id="map-canvas" style="height:90%;top:30px"></div> </body> JS <script> var

Android - Cant get latitude/longitude value to store and pass on variable

烂漫一生 提交于 2019-12-02 15:21:41
问题 I am trying to store the latitude/longitude to variables x3 and x4 to pass on Spot[] array but it returns 0. I tried printing it on onConnected method and it works fine. I also tried other methods to add marker on google map and I put map.addMarker on onConnected method instead but my app closes. If u can suggest where to put addMarker please do. Thanks. GoogleMap map; private static Location mLastLocation; private static GoogleApiClient mGoogleApiClient; static double x3; static double x4;

How to get rid of `Google Map direction service's` markers?

时间秒杀一切 提交于 2019-12-02 14:31:20
The Google map Direction Service Api has two "side effects" , 1- it adds Markers automatically to origin and destination. 2- it adds two InfoWindow to the new Markers , containing their addresses. Any idea how to get rid of theese Markers and their infoBubble? Add suppressMarkers: true to the DirectionsRendererOptions suppressMarkers | boolean |Suppress the rendering of markers. 来源: https://stackoverflow.com/questions/18033713/how-to-get-rid-of-google-map-direction-services-markers

Dynamic Markers - Google Maps API - Markers not incrementing with i value in loop

隐身守侯 提交于 2019-12-02 14:13:24
问题 I have created the maps api below and have an array of addresses that come from a database. The map loads correctly, however I have the following issue. The dynamic Markers are not incrementing with the value of "i".. so the map displays all markers with "1" and not "1,2,3,4,5" // Define Vars var pinColor = "FE7569"; var marker, i; // Set default map center location var latlng = new google.maps.LatLng(-27.79014,153.18049); // Create pinShadow for each marker var pinShadow = new google.maps

How can I calculate distance between multiple latitude and longitude?

半城伤御伤魂 提交于 2019-12-02 13:42:27
I want to calculate total distance between each points both contains lat and long, these points are stored in local database, so the scenario is I want to calculate distance from point a to b & b to c & c to d and these points(lat and long) are stored into database using google place api All the points are fetched from database. you can calculate distance between 2 location points without using places api private double distance(double lat1, double lon1, double lat2, double lon2) { double theta = lon1 - lon2; double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad