Created
March 31, 2015 09:44
-
-
Save prismicdeveloper/f221a2396c079a7d291f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "near" predicate for GeoPoint fragments | |
near = Predicates::near('my.store.location', 48.8768767, 2.3338802, 10) | |
# Accessing GeoPoint fragments | |
place = document.get_geopoint('article.location') | |
coordinates = place ? (place.latitude.to_s + ',' + place.longitude.to_s) : '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment