Archives de catégorie : google maps

playing with maps, earth, objects, 3D terrain and so on …

raccourcis sketchup

Move : M
Rotate : Q
Select : SPACE
Line : L
Rectangle : R
Circle : C
Orbit : O
Pan : H
Zoom : Z
Scale : S
Push/pull : P
Offset : F
triangulated irregular network or TIN voir : http://help.sketchup.com/en/article/115432
voir aussi
déplacement à la souris : 
clic sur molette + deplacement = rotation
shift clic sur molette : panoramique
contraindre déplacement : 
souris  + fleche
utiliser les points d’inférence pour conserver les // et les distances. Montrer les points d’arrivée
double clic : répète la dernière commande
étirer  + CTRL : création nouvel objet 
guides avec le metre
composant : pour réutilisation objet. 
Si on modifie un composant : toutes les instances se modifient !
A la difference d’un groupe
sélection : activer transparence pour vérifier
dupliquer : deplacer + CTRL jusqu’à la position du dernier objet
puis indiquer le nombre dans la case dimension avec /. Ex : /10
 
outil « suivez-moi » : extrusion sur chemin 
faire objet
faire chemin
selectionner chemin
outil suivez moi et clic sur l’objet à extruder
https://www.youtube.com/watch?v=ngVIBlWiTvM
l’objet extrudé est modifiable/étirable 
 

bouger objet
https://www.youtube.com/watch?v=M2xlYnXzOt8

extension sketchup : http://extensions.sketchup.com/

scripts : http://www.smustard.com/scripts/

Module HTML 3Dhttp://www.cl3ver.com/users/create_account

 

ultimate and best solutions are

tutorials : how to make a road

tutorial : maps as a texture

tools for creating maps with POI

 javascript

python

see also

Calculateur d’itinéraire

Calculateur d’itinéraire passant par  PLACE

GOOGLE MAP

web services (link)
https://developers.google.com/maps/documentation/directions/ (link)

The Google Directions API is a service that calculates directions between locations using an HTTP request

2,500 directions requests per day.

When the mode of transportation is driving, walking, or cycling, each directions search counts as a single request.

Searching for transit directions counts as  4 requests.

Individual requests for driving, walking, or cycling directions may contain up to 8 intermediate waypoints in the request. Waypoints can not be specified for transit requests.

https://developers.google.com/maps/documentation/imageapis/ (link)
https://developers.google.com/places/ (link)

https://developers.google.com/places/documentation/ (link)

The Google Places API is a service that returns information about Places — defined within this API as establishments, geographic locations, or prominent points of interest — using HTTP requests. Place requests specify locations as latitude/longitude coordinates.

staticMap
http://maps.googleapis.com/maps/api/staticmap?center=28302,Gallardon,France&zoom=14&size=512×512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318&markers=color:red|color:red|label:C|40.718217,-73.998284&sensor=false&key=AIzaSyBrdi03QidyDemfWkewyzQkjRzhmMDjiXE (link)
maps.googleapis.com/maps/api/staticmap?center=28302,Gallardon,France&zoom=14&size=512×512&maptype=roadmap&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318&markers=color:red|color:red|label:C|gallardon|label:C|Ymeray&sensor=false&key=AIzaSyBrdi03QidyDemfWkewyzQkjRzhmMDjiXE
zoom 10, taille 1024

http://maps.googleapis.com/maps/api/staticmap?center=28302,Gallardon,France&zoom=10&size=1024×1024&maptype=roadmap&markers=color:green|label:G|Gallardon&markers=color:red|color:red|label:C|Bailleau|label:C|Ymeray&sensor=false&key=AIzaSyBrdi03QidyDemfWkewyzQkjRzhmMDjiXE (link)

zoom 10, taille max = 640, 3 marqueurs

http://maps.googleapis.com/maps/api/staticmap?center=28302,Gallardon,France&zoom=10&size=640×640&maptype=roadmap&markers=color:green|label:G|Gallardon&markers=color:red|color:red|label:C|Bailleau|label:C|Ymeray&sensor=false&key=AIzaSyBrdi03QidyDemfWkewyzQkjRzhmMDjiXE (link)

viewport, centré sur chartres, avec Dreux et Rambouillet de Visible

http://maps.googleapis.com/maps/api/staticmap?center=Chartres,%20France&visible=Dreux,France|Rambouillet,France&size=512×512&sensor=false&visual_refresh=true (link)

viewport, centré sur chartres, avec Dreux et Rambouillet de Visible, zoom:10 + marqueur Gallardon

http://maps.googleapis.com/maps/api/staticmap?center=Chartres,%20France&visible=Dreux,France|Rambouillet,France&size=512×512&sensor=false&visual_refresh=true&zoom=10&markers=color:green|label:G|Gallardon (link)

url limité à 2048 caracteres
sinon (link)
google engine lite
https://support.google.com/mapsenginelite/?hl=fr (link)
ATTENTION AUX TERMES DE LA LICENCE
support

Parametres

key — Your application’s API key. This key identifies your application for purposes of quota management and so that Places added from your application are made immediately available to your app. Visit the APIs Console to create an API Project and obtain your key.
location — The latitude/longitude around which to retrieve Place information. This must be specified as latitude,longitude.
radius — Defines the distance (in meters) within which to return Place results. The maximum allowed radius is 50 000 meters. Note that radius must not be included if rankby=distance (described under Optional parameters below) is specified.
sensor — Indicates whether or not the Place request came from a device using a location sensor (e.g. a GPS) to determine the location sent in this request. This value must be either true or false.

Optional parameters

keyword — A term to be matched against all content that Google has indexed for this Place, including but not limited to name, type, and address, as well as customer reviews and other third-party content.
language — The language code, indicating in which language the results should be returned, if possible. See the list of supported languages and their codes. Note that we often update supported languages so this list may not be exhaustive.
minprice and maxprice (optional) — Restricts results to only those places within the specified range. Valid values range between 0 (most affordable) to 4 (most expensive), inclusive. The exact amount indicated by a specific value will vary from region to region.
name — One or more terms to be matched against the names of Places, separated with a space character. Results will be restricted to those containing the passed name values. Note that a Place may have additional names associated with it, beyond its listed name. The API will try to match the passed name value against all of these names; as a result, Places may be returned in the results whose listed names do not match the search term, but whose associated names do.
opennow — Returns only those Places that are open for business at the time the query is sent. Places that do not specify opening hours in the Google Places database will not be returned if you include this parameter in your query.
rankby — Specifies the order in which results are listed. Possible values are:
prominence (default). This option sorts results based on their importance. Ranking will favor prominent places within the specified area. Prominence can be affected by a Place’s ranking in Google’s index, the number of check-ins from your application, global popularity, and other factors.
distance. This option sorts results in ascending order by their distance from the specified location. Ranking results by distance will set a fixed search radius of 50km. One or more of keyword, name, or types is required.
types — Restricts the results to Places matching at least one of the specified types. Types should be separated with a pipe symbol (type1|type2|etc). See the list of supported types.
pagetoken — Returns the next 20 results from a previously run search. Setting a pagetoken parameter will execute a search with the same parameters used previously — all parameters other than pagetoken will be ignored.
zagatselected — Restrict your search to only those locations that are Zagat selected businesses. This parameter does not require a true or false value, simply including the parameter in the request is sufficient to restrict your search. The zagatselected parameter is experimental, and only available to Places API enterprise customers.

API KEY

AIzaSyBrdi03QidyDemfWkewyzQkjRzhmMDjiXE

PLACE TYPES

accounting
airport
amusement_park
aquarium
art_gallery
atm
bakery
bank
bar
beauty_salon
bicycle_store
book_store
bowling_alley
bus_station
cafe
campground
car_dealer
car_rental
car_repair
car_wash
casino
cemetery
church
city_hall
clothing_store
convenience_store
courthouse
dentist
department_store
doctor
electrician
electronics_store
embassy
establishment
finance
fire_station
florist
food
funeral_home
furniture_store
gas_station
general_contractor
grocery_or_supermarket
gym
hair_care
hardware_store
health
hindu_temple
home_goods_store
hospital
insurance_agency
jewelry_store
laundry
lawyer
library
liquor_store
local_government_office
locksmith
lodging
meal_delivery
meal_takeaway
mosque
movie_rental
movie_theater
moving_company
museum
night_club
painter
park
parking
pet_store
pharmacy
physiotherapist
place_of_worship
plumber
police
post_office
real_estate_agency
restaurant
roofing_contractor
rv_park
school
shoe_store
shopping_mall
spa
stadium
storage
store
subway_station
synagogue
taxi_stand
train_station
travel_agency
university
veterinary_care
zoo

Exemple (link)

<!DOCTYPE html PUBLIC « -//W3C//DTD XHTML 1.0 Transitional//EN » « http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd »>                                                                                                             //<![CDATA[                   var map = new GMap2(document.getElementById(« gmapper_map »));                   var geocoder = new GClientGeocoder();                 map.enableScrollWheelZoom();                       var mapdiv = document.getElementById(« gmapper_map »);                      GEvent.addDomListener(mapdiv, « DOMMouseScroll », wheelevent);                       mapdiv.onmousewheel = wheelevent;                                   //map.addControl(new GSmallMapControl());                   map.addControl(new GMapTypeControl());                   //var mycontrol = new GHierarchicalMapTypeControl();                  //var mycontrol = new GMapTypeControl();                  //map.addControl(mycontrol);                 map.setCenter(new GLatLng( 46.2276380,2.2137490),6);                                       //alert(response.Status.code);                  new GKeyboardHandler(map);                   map.enableDoubleClickZoom();                   map.enableContinuousZoom();                   map.setMapType(G_NORMAL_MAP);                                   var interval = setInterval(« tilechk() »,500);                  //]]>                                                                  //<![CDATA[                 //map.addControl(new GScaleControl());                 var bounds = new GLatLngBounds();                     latlngtmp = new Array();                    var marker = new Array();                     GEvent.addListener(map, »click », function(overlay, latlng) {                        if (latlng) {                      latlngtmp[count] = latlng;                      var image = (!count) ? new Array(« http://www.distance.to/img/mrk.strt.png »,28,16) : image = new Array(« http://www.distance.to/img/mrk.png »,28,16);                       //map.openInfoWindow(latlng, myHtml);                      marker[count] = createMapMarker(latlng,image);                      map.addOverlay(marker[count]);                      //map.setCenter(latlng);                  if(count >= 1) {                  var _color = Math.floor(Math.random() * 16777215) + 1;                  var polyline2 = new GPolyline([                  latlngtmp[count-1],                      latlngtmp[count]], »# »+_color.toString(16),3,0.9);                  map.addOverlay(polyline2);                  showVarDistance(new Array(latlngtmp[count-1].y, latlngtmp[count-1].x), new Array(latlngtmp[count].y, latlngtmp[count].x),count, »# »+_color.toString(16));                  }                  count++;                    }                  });map.addControl(new GMapTypeControl());//]]>                                                                                      <!–              [if lte IE 6]><![endif]              –>                                                                  

Exemple code Googl Store locator Php/mySQL (link)

Exemple Javascript pour trouver PLACES (link)

CONSOLE API (link)

GOOGLE MAP ENGINE

https://mapsengine.google.com/admin/?newuser=true&authuser=0&pli=1#MapCreationPlace:cid=05658090892726499480&v=MAP_CREATION&aid=05658090892726499480-16071188762309719429 (link)