Isn't "Change location" in mobile site available with API?

20 views
Skip to first unread message

H.Hiro(Maraigue)

unread,
Mar 25, 2010, 9:11:22 AM3/25/10
to foursquare API
In foursquare mobile site http://foursquare.com/mobile/
we can use "Change location" for setting current location.

Isn't it available with API?

Christopher Burris

unread,
Mar 25, 2010, 9:31:40 AM3/25/10
to foursqu...@googlegroups.com
You pass in a lat/lon pair when you make API calls. It assumes you get a lat/lon pair from the mobile device's GPS (or cell tower trianglation). 





--
To post to this group, send email to foursqu...@googlegroups.com

http://groups.google.com/group/foursquare-api

To unsubscribe from this group, send email to foursquare-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



naveen

unread,
Mar 25, 2010, 9:59:59 AM3/25/10
to foursquare API
yes, this is exactly why

every method potentially can have location information -- so there's
no need to have a separate "change default location" call

the mobile web version has this because we have to manually get
location data from the user (as opposed to being able to get it
silently via GPS or the browser)

On Mar 25, 9:31 am, Christopher Burris <ch...@chilitechno.com> wrote:
> You pass in a lat/lon pair when you make API calls. It assumes you get a
> lat/lon pair from the mobile device's GPS (or cell tower trianglation).
>
> On Thu, Mar 25, 2010 at 9:11 AM, H.Hiro(Maraigue)

> <marai...@mail.goo.ne.jp>wrote:
>
>
>
> > In foursquare mobile sitehttp://foursquare.com/mobile/

H.Hiro(Maraigue)

unread,
Mar 26, 2010, 6:24:47 AM3/26/10
to foursquare API
Thanks Burris & naveen.
I will think of other ways.

I have thought of using this function for apps with weak GPS system.
In fact, since my phone cannot find its location with cell tower
trianglation (only GPS is available), it takes much time to find its
location. Because of it, using WinMoSquare is inconvenient.

naveen

unread,
Mar 26, 2010, 11:20:17 AM3/26/10
to foursquare API
so one way to do this with devices that don't have location/GPS is to
keep track of the user's manually entered location in the session

then, every time you make a request to our side (for instance, to see
a list of venues nearby), you pass this manual location data over in
place of the auto-location

this is essentially what our mobile web version is doing

On Mar 26, 6:24 am, "H.Hiro(Maraigue)" <marai...@mail.goo.ne.jp>
wrote:

H.Hiro(Maraigue)

unread,
Mar 27, 2010, 4:06:21 AM3/27/10
to foursquare API
Thanks,

The problem is that if a user moves very far without checking-in
anywhere (e.g. a flight of hundreds of miles), then the user cannot
make a new check-in at new location in case of GPS is unavailable and
not using web interface.
In the case the user needs to input his/her new location manually via
web interface by opening a browser, but I wonder it can be done via
API.

Christopher Burris

unread,
Mar 27, 2010, 2:17:07 PM3/27/10
to foursqu...@googlegroups.com
You can have an interface in your app where you capture an address or even just the city, country, from the user and use a geocoding service to get a lat/lon pair and then feed that to the API. 
I know yahoo and google maps have a geocoding service you can use (subject to certain terms of service). 




To unsubscribe from this group, send email to foursquare-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

H.Hiro(Maraigue)

unread,
Mar 28, 2010, 11:55:46 AM3/28/10
to foursquare API
Thanks very much.

It's true that I can convert addresses to lat/lon via external
service,
but if I use external service, the change of location is not reflected
into the information shown in http://foursquare.com/ .
So what I want to do most is to change the location as a function of
foursquare.

I strongly hope foursquare serves the function as API.

On 3月28日, 午前3:17, Christopher Burris <ch...@chilitechno.com> wrote:
> You can have an interface in your app where you capture an address or even
> just the city, country, from the user and use a geocoding service to get a
> lat/lon pair and then feed that to the API.
> I know yahoo and google maps have a geocoding service you can use (subject
> to certain terms of service).
>
> On Sat, Mar 27, 2010 at 4:06 AM, H.Hiro(Maraigue)

> <marai...@mail.goo.ne.jp>wrote:

naveen

unread,
Mar 29, 2010, 12:18:01 PM3/29/10
to foursquare API

On Mar 28, 11:55 am, "H.Hiro(Maraigue)" <marai...@mail.goo.ne.jp>
wrote:


> Thanks very much.
>
> It's true that I can convert addresses to lat/lon via external
> service,
> but if I use external service, the change of location is not reflected
> into the information shown inhttp://foursquare.com/.
> So what I want to do most is to change the location as a function of
> foursquare.
>
> I strongly hope foursquare serves the function as API.

when you get the lat/lon from the external service, just pass it along
to our api. for instance, in the /venues call, you should always pass
the latest lat/lon

H.Hiro(Maraigue)

unread,
Mar 30, 2010, 5:15:18 AM3/30/10
to foursquare API
hmm...
What you say does not solve any of my proposition,
but I'll give up only updating location shown in http://foursquare.com/
via API
(without checking-in).

naveen

unread,
Mar 30, 2010, 11:03:15 AM3/30/10
to foursquare API
hiro

if you call /v1/venues as an authenticated user and pass in an
appropriate geolat/geolong, then foursquare.com will reflect your new
location automatically

for instance, try this as an authenticated user:
http://api.foursquare.com/v1/venues?geolat=37.773429&geolong=-122.401772

it'll relocate you in san francisco (the location shown on
foursquare.com will be updated simultaneously)

On Mar 30, 5:15 am, "H.Hiro(Maraigue)" <marai...@mail.goo.ne.jp>
wrote:


> hmm...
> What you say does not solve any of my proposition,

> but I'll give up only updating location shown inhttp://foursquare.com/

H.Hiro(Maraigue)

unread,
Apr 6, 2010, 11:33:17 PM4/6/10
to foursquare API
Thanks, I understood.
Reply all
Reply to author
Forward
0 new messages