No problem.

For looking up a station you simply need to use the GeoCoding services.
 This is really simple and an explanation of the services and how to use
them located here:
http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding

That will return a lat/lon for the location the user enters.

Now, you will need to read up on the terms of use as Rossko stated, "Keep an
eye on the terms of use ; you're not allowed to scrape and
store Google's data unless you intend to present it on a map.  There are
other geocoders."

Now, if you are having trouble geocoding the results, you can use the places
API as Rossko stated to get more general search results which if you don't
have the addresses of the stations you might have to use this feature.  It
is detailed here with examples of how to implement and use it:
http://code.google.com/apis/maps/documentation/places/

Once you have your Lat/Lon are you wanting to save Pixel X/Y's or are you
just wanting the Lat/Lon's to save?  If you want Lat/Lon look at this:
http://code.google.com/apis/maps/documentation/javascript/reference.html#Projection

If you have any further questions simply ask and we can point you in the
right direction.

On Wed, Jun 22, 2011 at 2:02 AM, LutraMan <[email protected]> wrote:

> Yes, this is exactly that!
> but as I sad, I'm very new to using APIs. I know it's rood to ask for
> a step by step guidance, but I never used APIs before. Can you show me
> the code I need to use? And if there is something else I need to do
> before using APIs?
>
> On Jun 21, 6:45 pm, Nathan Raley <[email protected]> wrote:
> > You could do a look up of the stations using the API and then convert the
> > lat/lon coordinates you retrieve to a tile or pixel x,y coordinate
> system.
> >
> > Is that what you are wanting to achieve?On Tue, Jun 21, 2011 at 10:29 AM,
> LutraMan <[email protected]> wrote:
> > > Well, mostly addresses, but I actually also need it to find it based
> > > on known points of interest.
> > > The main idea is to create a DB of coordinates from a list of bus
> > > stations, automatically taken from the bus company web page.
> > > I'm very new to programming with 3rd party functions, and to be
> > > honest, I never used APIs. I'm looking for a code that will look
> > > something like that:
> >
> > > getCoordinates("search term", x, y) // x and y are float
> >
> > > and now I would like x and y to be the coordinates of the google maps
> > > search term 1st result.
> >
> > > On Jun 20, 12:07 pm, Rossko <[email protected]> wrote:
> > > > > I'm trying to find a function that gets a search term as text,
> sends
> > > > > it to google maps to search, and returns the coordinates of the
> >
> > > > What kind of search term do you have in mind?  Geographic feature,
> > > > postal addresses, business names, political entities, historical
> > > > events, population density  .. ?  There's usually one or more
> > > > solutions best tailored by type of information.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Maps JavaScript API v3" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to