Skip to content

Instantly share code, notes, and snippets.

@prismicdeveloper
Created March 31, 2015 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prismicdeveloper/f221a2396c079a7d291f to your computer and use it in GitHub Desktop.
Save prismicdeveloper/f221a2396c079a7d291f to your computer and use it in GitHub Desktop.
# "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