Mark in google maps a list of addresses - Android or PHP

1.1k Views Asked by At

I have a list of addresses and I want to mark this places all in google maps(nearly 1k), getting maybe its cordinates to save them. Actually I am not programming an app, but I know both lenguages (Android and PHP) and I think it is possible to do this with both. Any idea ? Thank in advance!

1

There are 1 best solutions below

4
On BEST ANSWER

Have you tried the google maps api?

https://developers.google.com/maps/documentation/geocoding/intro

https://developers.google.com/maps/documentation/geocoding/intro#ReverseGeocoding

This is what you are looking for I think.

EDIT: to mark stars on map

    // In the following example, markers appear when the user clicks on the map.
// Each marker is labeled with a single alphabetical character.
var labels = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var labelIndex = 0;

function initialize() {
  var bangalore = { lat: 12.97, lng: 77.59 };
  var map = new google.maps.Map(document.getElementById('map'), {
    zoom: 12,
    center: bangalore
  });

  // This event listener calls addMarker() when the map is clicked.
  google.maps.event.addListener(map, 'click', function(event) {
    addMarker(event.latLng, map);
  });

  // Add a marker at the center of the map.
  addMarker(bangalore, map);
}

// Adds a marker to the map.
function addMarker(location, map) {
  // Add the marker at the clicked location, and add the next-available label
  // from the array of alphabetical characters.
  var marker = new google.maps.Marker({
    position: location,
    label: labels[labelIndex++ % labels.length],
    map: map
  });

 }