[hibernate-dev] [HSEARCH] Geospatial indexing and queries
Sanne Grinovero
sanne at hibernate.org
Wed Dec 21 12:02:59 EST 2011
On 21 December 2011 17:58, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
>
> On 21 déc. 2011, at 17:36, Sanne Grinovero wrote:
>
>> On 21 December 2011 17:34, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
>>>
>>> On 21 déc. 2011, at 17:30, Hardy Ferentschik wrote:
>>>
>>>>>
>>>>> But we can reduce the number of methods called by doing something like this
>>>>>
>>>>> builder
>>>>> .spatial()
>>>>> .forLocation("location")
>>>>> .within(500, Unit.KM)
>>>>> .ofLatitude(48.8d).andLongitude(2.29d)
>>>>> .createQuery();
>>>>>
>>>>> Would you like it better?
>>>>
>>>> much actually :-)
>>>
>>> If we go that way, we could even make the alternative model more explicit as well
>>>
>>> builder
>>> .spatial()
>>> .forLocation("location")
>>> .within(500, Unit.KM)
>>> .ofCoordinates(coordinates)
>>> .createQuery();
>>
>> +1
>> Best looking I've seen so far. What's the type of _coordinates_ ?
>
> `Coordinates` :)
What's the type of `Coordinates` ?
And where do I find a markdown rendering plugin for gmail ?
More information about the hibernate-dev
mailing list