Questions tagged [google-maps]

Google Maps is a desktop and mobile web mapping service application and technology provided by Google, offering satellite imagery, street maps, and Street View perspectives.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Choose a marker for the map based on the alerts it has

I need help to refactor this code, I think I can avoid the first two functions that filter the array. Also in the third part where I use the result of these two filters: ...
John Alberto López Hernández's user avatar
2 votes
0 answers
2k views

Python script to scrape google maps without API

I wrote a python script to scrape google maps for my app. I really want my code to be readable and have tried to follow PEP-8 wherever I could, so I have come to you all for guidance. It uses selenium ...
WhiteWood's user avatar
3 votes
1 answer
347 views

Make roads contrast with Google Maps

EDIT: I turned down the brightness on my monitor using the graphics options for the video card. This solved the issue. How this setting changed is a mystery... I am leaving this up because googling it ...
S. Melted's user avatar
  • 221
2 votes
1 answer
972 views

Avoid global variable for callback function called by function with no arguments

My website has multiple pages that use the Google Maps api. Each page uses a different part of the api (e.g. autocomplete, displaying markers etc). However, every page needs to call the initMap() ...
pp182's user avatar
  • 23
2 votes
1 answer
49 views

Turning on/off setInterval locating - using React.js

I work with the GoogleMaps API, using React.js. Inside the GoogleMap component: I have a ...
Shir K's user avatar
  • 133
2 votes
1 answer
66 views

Google Maps marker management for games

Is there a better way to design this code? I have read that too many function parameters is a sign of poorly design code, and would love some feedback on this code. The functions Google Maps markers ...
Joeyboy's user avatar
  • 131
7 votes
4 answers
1k views

Generate points for smooth movement between two given points

This is one of the methods in a project for generating points between two given points. We add points of route with a 25ms delay in an array and a camera on Google Maps is always at the last point. So ...
Waleed's user avatar
  • 171
1 vote
1 answer
58 views

App sends location data to website

Explaining the idea and first steps Today, I had the idea to do a website which displays my current position. I searched in the App Store for an App and found one named SendLocation. This App ...
Felix Haeberle's user avatar
0 votes
1 answer
64 views

Displaying multiple objects on map and calculating distances using google api

I am quite new to Javascript. For a school project we wrote a website that displays the user's location on a google map alongside with some objects such as vehicles or passengers. I rewrote my code ...
Armanc Keser's user avatar
2 votes
0 answers
63 views

Parsing potentially nonexistant JSON fields in JavaScript

Context: I'm currently toying with the Google Geocode API to break down address strings into a more machine-friendly format. The problem is that neither the user input or API output are 100% ...
Magmagan's user avatar
3 votes
1 answer
2k views

Hover on list items to change map marker styling

I'm struggling to make a React/JS map I have more efficient. Essentially, I have a list of cards, and then a map of markers. When I hover on one of the cards, it changes the styling of the marker. ...
Kyle Pennell's user avatar
4 votes
2 answers
140 views

Find SuburbName from latlong or location

I have create one class and interface for finding SuburbName based on Location or LatLong coordinates. My interface ...
Lalji Dhameliya's user avatar
8 votes
2 answers
745 views

Function to find user's region based on GPS coordinates

I've made an algorithm/ function to get a user's region based on their GPS coordinates. It primarily looks for big cites and counties for the region and the state for the outer region eg. orange ...
Rachel Dockter's user avatar
1 vote
0 answers
78 views

Plotting neighborhood Yelp information on Google Maps

I have a project that I made a long time ago, and I was wondering how I should refactor the front end. This web app gets yelp data and displays it on a google map. I remember someone saying that html ...
Dream_Cap's user avatar
  • 641
6 votes
1 answer
823 views

Bottlenecks in asynchronous JavaScript code for Google Map

I'm working on a pothole map web app in Google Apps Script. The map gets its data from a Google spreadsheet (from manual surveying), which is then transformed via hits to the Geolocation and Google ...
Mike Warren's user avatar
2 votes
2 answers
706 views

Get JSON script code with pushing to heatmap

I have a script that makes a database call and then filters the results. After filtering it pushes it to an array and shows it on a map. Here is my function: ...
Balance's user avatar
  • 61
1 vote
1 answer
160 views

Places memoized service via Google Maps

I made a service which saves places to localStorage after the user clicks the left mouse button on the map. When the user clicks the right mouse button on the ...
cyklop77's user avatar
  • 301
2 votes
1 answer
105 views

Placing many pins on a Google Map

It's taking almost 2 minutes to load all the pins on this Google Maps API. Every time the page is loaded it sends a request for each location one by one. Can it do this all at the same time or preload ...
Juls's user avatar
  • 21
5 votes
2 answers
1k views

Google Maps API with Jackson Parser

I am working on the Google Maps API, doing a reverse geocoding with the following code snippet. What I am using are: Spring Jackson Parser Google Maps API It is working fine but it gives results a ...
Shaun 's user avatar
  • 51
3 votes
1 answer
5k views

Display multiple polygons on Google Maps and toggle visibility of each polygon

I want to display multiple polygons (with the co ordinates either given by the user or pre-defined) on Google Maps and to toggle the visibility of each polygon. I wrote the code to display multiple ...
user143089's user avatar
1 vote
1 answer
1k views

Google Maps Directions API

I'm looking for all kinds of feedback: style issues, missed corner cases, performance etc. My code is regarding Google Maps Directions API that is a service that calculates directions between ...
M_N's user avatar
  • 41
10 votes
1 answer
1k views

Python application to create Google Map image

I have written a Django app that would get some input and give you an image as output. The output image has 3 layers: Google Map image rosreestr (russian docs layer) data from geojson layer I hear ...
Denny's user avatar
  • 141
0 votes
1 answer
274 views

AsyncTask for subscribing to current location

I made the below CurrentLocationTask as a way of reducing code duplication, as my application currently has 2 different Activity...
Bassie's user avatar
  • 559
3 votes
1 answer
3k views

Drawing multiple polygons in Google Maps in the same style

To multiple Polygon objects in Google maps, I have to set same strokeWeight, fillColor and fillOpacity attributes. Is there a way how to add these only once or do it in a better way? ...
Ricardo Castañeda's user avatar
4 votes
0 answers
1k views

Sanitize and standardize street addresses using Google Maps lookups

Take in incomplete user input street addresses, clean it, segregate based on word count and run it into Google maps places api and output completed & standardised addresses based on Json object ...
Dr Confuse's user avatar
4 votes
0 answers
96 views

Simplified Google Maps program

I've been trying to write a simplified Google Maps program. My programming experience is limited. I have come up with a solution but I'm looking to make it more user friendly by splitting it up into ...
Thomas Shemeld's user avatar
1 vote
1 answer
101 views

Factory hierarchy for creating GoogleMap and its elements

The purpose of this code is to create a GoogleMap using PHP, add markers to it according to Place objects from database, add infoWindows for these markers. While ...
andrius.k's user avatar
  • 141
2 votes
1 answer
380 views

Ivory google map facade

I want to simplify this process of creating map, putting markers on it according to Place objects from my database, creating info windows. Using egeloen/ivory-...
andrius.k's user avatar
  • 141
3 votes
2 answers
613 views

Plotting JSON locations using Google Road API with Javascript Promise chaining

I wrote this code for an personal application, just to help me visualize some data related to driving. I have one JSON on my machine, this JSON contains a set of locations (lat, lngs) and every ...
Antonio Ribeiro's user avatar
2 votes
0 answers
223 views

First API Mashup app

The app is functioning but I am not sure if I have done it properly. The code is present in my GitHub repository. The demo can be viewed here. In this application a user can search for anything in a ...
Sahil's user avatar
  • 121
2 votes
1 answer
341 views

Displaying multiple Google Maps markers on a Visualforce page

I hope this is the right board for this. I am a novice programmer and I am trying to learn how to write better code. I have a visualforce page with a very long Javascript script in the middle of it to ...
MRG's user avatar
  • 133
2 votes
0 answers
168 views

Implementing FusedLocationProvider for more than one Activity in Android

I am trying to implement Google Maps in Android. I am also trying to learn different design patterns. I want to use location in more than one Activity hence I have used a class named 'GoogleLocation' ...
Tiny's user avatar
  • 21
0 votes
1 answer
951 views

Simple PHP CRUD application with Google Maps

I've got some experience with Laravel but for fun I started a small project (basically a CRUD with also Google Maps) without a framework because I considered that is oversized. This is the directory ...
Claudio King's user avatar
2 votes
0 answers
159 views

Google Maps API implementation with a revealing module pattern

What follows is the JavaScript written for a Google Maps API implementation (for an image gallery that shows image, location, description, next and prev buttons, etc.). I have a JSON ...
sarath's user avatar
  • 51
1 vote
1 answer
3k views

Retrieving location coordinates from SQL database and plotting on a map android Gmaps

I am new to Android development. I am currently working on an Android app that fetches changing location coordinates from a SQL database, and plots on a Map view at regular intervals. But I think this ...
Saurabh Badola's user avatar
7 votes
1 answer
3k views

Excel VBA to parse JSON out of Google Maps API

Some code that I wrote and broke into 5 separate questions on stack overflow. Some guy wanted to query Google Maps receive some JSON and then for each result found within that JSON do another query. ...
S Meaden's user avatar
  • 191
5 votes
2 answers
1k views

Using JavaScript promises to display weather and location information

This is the first time I'm trying to use promises in JavaScript so I'm not sure if I have done it correctly, but it seems to work. The problem is that I have ended up with a "nested ...
Veronika's user avatar
3 votes
1 answer
240 views

Google Maps geocoding lookup function

In an effort to keep all of the Google Maps Javascript API in it's own little world, I have created a googleMaps object that will contain all of the functions that directly make google maps webservice ...
jros's user avatar
  • 155
2 votes
1 answer
154 views

Google maps API code

I have inherited a site which uses the Google API to create a map on my webpage. I don't know much about JavaScript but from the research I've done, I dont think this code is optimal as it is not ...
Paul Simpson's user avatar
3 votes
1 answer
905 views

Displaying a Google map with multiple complex markers and unique info windows

This JavaScript file is part of a large Ruby on Rails app. Any feedback is appreciated. Update 3.7.16: as per @Jonah's suggestion, here's a description of the code's purpose: I've built a bus-...
Andrew Breunig's user avatar
1 vote
1 answer
87 views

An ETA plugin for hangoutsbot

This is a plugin for hangoutsbot/hangoutsbot that listens for words people say and then gives them an ETA and a link with directions. Happy to hear about any optimisations that could be made. ...
jimsug's user avatar
  • 113
1 vote
1 answer
2k views

Google Maps coordinations JSON to object

I am trying to write a parser from JSON data which I get from Google requesting coordinates of a city, which will create my specified object structure. For parsing, I've written a custom ...
Edgar's user avatar
  • 111
0 votes
2 answers
9k views

Ajax request URL with the Google Maps API

I am making an HTTP request with the Google Maps API and I have to pass in parameters (adresses/coordinates): ...
realappie's user avatar
  • 165
2 votes
0 answers
2k views

Google maps class inside fragment , with marker carry object

I need someone review my google map class , here is my situation I am working in medical project , I created one class to show hospital items in map with data object , here is my fragment class , I ...
Mina Fawzy's user avatar
2 votes
0 answers
42 views

Google Maps convenience object

I have added the full code of my current Gmap component, which is a convenience object to abstract Google Maps functionality: ...
Trace's user avatar
  • 159
3 votes
1 answer
5k views

Multiple Google Maps using V3 API

I have several Google Maps on one page and each has its own set of Lat/Lng co-ordinates. As a result I have added in the JavaScript options for each one individually as follows: ...
Lighty_46's user avatar
  • 145
3 votes
0 answers
556 views

Looping through Parse.com queries

Here's my JavaScript file that queries data from Parse and then updates my Handlebars.js template to display them. The code has 3 async calls using a Promise. It still feel like it could be improved, ...
leerob's user avatar
  • 237
6 votes
2 answers
3k views

Zip Code to City, State for registration form

Took me a couple of days (in between working on other projects) to get the code working, but now that I do have it working I would like to know if there is a way that I could make it work better, or ...
Malachi's user avatar
  • 28.6k
4 votes
2 answers
1k views

Object-oriented JavaScript and Google Maps objects memory management

I have to draw various instances of HeatMaps, Winds and Polylines. Each layer will have one <...
nitansh bareja's user avatar
-1 votes
1 answer
379 views

The class gets distance between two points from Google API [closed]

...
xtfkpi's user avatar
  • 179