Moderators: Moderators, GeobytesAdmins
Yes, one way would be like this:TDietsch wrote:Is there any way to get a list of all cities and their codes within a 50 mile radius? The Online Location String Generator lists up to 60 km or 37 miles.
http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=50&LocationCode=USILCHIC&template=<geobytes%20city>,%20&units=miles
or in km...
http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=100&LocationCode=USILCHIC&template=<geobytes%20city>,%20&units=kmhttp://glrs.geobytes.com/map.htm?GetNearByCities&Radius=50&LocationCode=USILCHIC&template=<geobytes%20locationcode>%20<geobytes%20city>,%20&units=miles
TDietsch wrote:I am trying to redirect all users within a 50 mile radius of my city using GeoDirection. Do I need to list all of the location codes within that radius to accomplish this or is there a more efficient way?
<script language="Javascript"
src="http://gd.geobytes.com/gd?pages=USOHTOLE -r 80&targetpage=MyPage&ext=html&after=5">
</script>TDietsch wrote:Is there any way to get a list of all cities and their codes within a 50 mile radius? The Online Location String Generator lists up to 60 km or 37 miles.
Adrian wrote:Yes, one way would be like this:TDietsch wrote:Is there any way to get a list of all cities and their codes within a 50 mile radius? The Online Location String Generator lists up to 60 km or 37 miles.
- Code: Select all
http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=50&LocationCode=USILCHIC&template=<geobytes%20city>,%20&units=miles
or in km...
http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=100&LocationCode=USILCHIC&template=<geobytes%20city>,%20&units=km
and as may be obvious, your can change the template parameter to get back which ever parameter that you may require. The available parameters are listed here: http://www.geobytes.com/TagsHeaders.htm
So to return the location codes of near by cities, along with the the city names, you could use:
- Code: Select all
http://glrs.geobytes.com/map.htm?GetNearByCities&Radius=50&LocationCode=USILCHIC&template=<geobytes%20locationcode>%20<geobytes%20city>,%20&units=miles
That is assuming that you were looking for a hosted solution, however there are many other ways - such as downloading our "almost free" GeoWorldMap database and then using the sample queries that are listed here: viewtopic.php?t=352
And of course if you are running your own GeoSelect server, then you could direct the above sample requests at it, rather then our server at glrs.geobytes.com
In any case, please let me know if I can assist further.
Users browsing this forum: No registered users and 0 guests