I don't believe there is a way to compute distance between addresses directly without first retrieving the lat and long.
On Monday, January 4, 2016 at 3:50:44 PM UTC-5, Alex Kerr wrote:Hi all,Wondering how best to implement some basic geolocation stuff using Google Cloud products (and open source if appropriate)I need to search user records I'm storing in Datastore, which include the user's address (in ordinary human readable text format) to see which other users are within a certain distance from them. Seems I can't do a geospatial search directly on Datastore records but found something that suggests a clever little mashup with Google's Search API: http://ralphbarbagallo.com/2013/05/14/app-engine-geospatial-datastore-search-a-new-way/Questions:1.) Is there any better (/more standard) way than what's suggested at that link? (I know Cloud SQL allows geospatial searches but ideally I want to use Datastore if possible to store my data in)2.) Geospatial matches (at least using above techniques) need latitude and longitude - are there any Google APIs or open source PHP stuff I could use to convert addresses into lat/lon?I'm running on PHP AppEngine by the way and need a solution I can implement very quickly and easily if at all possible!Many thanks for any info/suggestions!
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7aea1d41-e9a0-40aa-8b22-8d582f63376d%40googlegroups.com.
I don't believe there is a way to compute distance between addresses directly without first retrieving the lat and long.Well can use the Directions API, it will give a driving (or walking etc!) distance between two addresses. Or the Direction Matrix API to get distances between multiple addresses. But it wont really 'scale' to running more than a few tens of calculations. So using the streightline distance is usually used, and that can be done in the application.... but before using the Maps APIs terms, read the terms very carefully, neither the geocoder nor the directions API can be used without displaying a Google Map on the website.There also isbut its java only, not even the Cloud DataStore, so not PHP.I beleive this concept:might would with the Cloud Datastore, not tried.(would need reimplementing in PHP)
On Monday, January 4, 2016 at 3:50:44 PM UTC-5, Alex Kerr wrote:Hi all,Wondering how best to implement some basic geolocation stuff using Google Cloud products (and open source if appropriate)I need to search user records I'm storing in Datastore, which include the user's address (in ordinary human readable text format) to see which other users are within a certain distance from them. Seems I can't do a geospatial search directly on Datastore records but found something that suggests a clever little mashup with Google's Search API: http://ralphbarbagallo.com/2013/05/14/app-engine-geospatial-datastore-search-a-new-way/Questions:1.) Is there any better (/more standard) way than what's suggested at that link? (I know Cloud SQL allows geospatial searches but ideally I want to use Datastore if possible to store my data in)2.) Geospatial matches (at least using above techniques) need latitude and longitude - are there any Google APIs or open source PHP stuff I could use to convert addresses into lat/lon?I'm running on PHP AppEngine by the way and need a solution I can implement very quickly and easily if at all possible!Many thanks for any info/suggestions!
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/80be5c2f-ae67-4ccc-825a-29b68fb6315a%40googlegroups.com.
How do I ask for an invite? I did not find any option.