0

Given latitude and longitude of a location say 27.1231 and 72.3454 how do I randomly plot points within a circle of radius say 10km with the above lat and log as the center?

It's somewhat similar to this (?)

EDIT

It's a geocoder question and not a Gmaps4rails one

How to get the co-ordinates of random points within a given range?

Community
  • 1
  • 1

1 Answers1

0

you may use google.maps.geometry.spherical.computeOffset with random distance and heading

Dr.Molle
  • 116,463
  • 16
  • 195
  • 201
  • how do I use that ? I'm totally new to this. –  Oct 16 '13 at 09:02
  • `google.maps.geometry.spherical.computeOffset.computeOffset(LatLng, randomNumberBetween1and10000, randomNumberBetween0and360)` – Dr.Molle Oct 16 '13 at 09:13