Posts

Showing posts with the label google-maps-api-3

google maps API for a place how many people have made reviews and rating?

Image
google maps API for a place how many people have made reviews and rating? I made a app and I use goole maps API. I would like know, you know when you make a request for place, API return 5 last reviews and reviews.rating, and rating, for how many reviews this rating is calculate ? How I can have this information do you know? I calculated for 5 last reviews and rating, the average does not correspond in 5 reviews.rating. Thus how to know this average is calculated on how much reviews? Thanks Edit : in this question (4 years ago) : how to get total number of reviews from google reviews I have try this solution user_ratings_total but that don't work Edit 2 : it's certainly possible nobody's know ? I think it's not possible for now : user_ratings_total appears to be removed – Parad0xJ Jun 27 at 12:41 ...

How to computerArea of a polygon with holes in Google maps? [on hold]

Image
How to computerArea of a polygon with holes in Google maps? [on hold] Polygon with Hole is presented by multiple paths, but how to computerArea of a polygon with holes in Google maps? My first attempt is to sum up all area of each path from google.maps.geometry.spherical.computeArea(path). function polygonArea1(polygon) { var paths = polygon.getPaths().getArray(); var a = 0; for (var i = 0; i < paths.length; ++i) { a += google.maps.geometry.spherical.computeArea(paths[i]); } return a; } It does not work because this computeArea() is unsigned! What is your solution or suggestion? #simple polygon: one path, no intersection. 42.42883995722236,-71.60123305060961 42.42874096809684,-71.60132961013414 42.42868157454647,-71.60120891072847 42.42878155365721,-71.60111637451746 #complex polygon 1: one path but has intersection. 42.42869345326113,-71.60101981499292 42.42879343235287,-71.6009259376774 42.42860733252938,-71.60083742477991 42.42871028143621,-71.60075025298693 #comple...