Well you might be able to use info from:
http://www.openstreetmap.org/export
getting the XML data. Unfortunately, you can't select a region other
than rectangular, also you get all sorts of data, including points of
interest (which are nodes, as are intersections). However, there are
data on streets (ways) in there:
<way id="6051300" user="ajturner" uid="3792" visible="true"
version="2" changeset="729331" timestamp="2008-11-10T04:27:09Z">
<nd ref="49716899"/>
<nd ref="49716901"/>
<nd ref="49716904"/>
<tag k="created_by" v="Potlatch 0.10f"/>
<tag k="highway" v="residential"/>
<tag k="name" v="Twining Ct NW"/>
<tag k="tiger:cfcc" v="A41"/>
<tag k="tiger:county" v="District of Columbia, DC"/>
<tag k="tiger:name_base" v="Twining"/>
<tag k="tiger:name_direction_suffix" v="NW"/>
<tag k="tiger:name_type" v="Ct"/>
<tag k="tiger:reviewed" v="no"/>
<tag k="tiger:separated" v="no"/>
<tag k="tiger:source" v="tiger_import_dch_v0.6_20070809"/>
<tag k="tiger:tlid" v="76237254"/>
<tag k="tiger:upload_uuid" v="bulk_upload.pl-0113c5d6-
c16d-484f-906b-0f8ab7b6b04e"/>
</way>
That one shows Twining Ct NW in Washington, DC, USA. This will
obviously depend on the OpenStreetMap coverage. You may need to write
something yourself to check whether any of the nodes listed in each
way ("nd ref=") are inside a polygon defining the city limits. Each
node has lat/lng, and each way is a collection of nodes. I'd probably
use the Google Maps API and load the OpenStreetMap XML for that, but
there would be many ways to do that. Then you'd need to export a
region from OpenStreetMap just large enough for the city of interest.
That might even be possible to automate.
-Brian
On Mar 22, 8:35 am, Andrew Leach <[email protected]>
wrote:
> On Mar 22, 10:55 am, Chandana Napagoda <[email protected]> wrote:
>
>
>
> > Can I get street names of given city? is it possible to doing using
> > Google Map API?
>
> No.
>
> In fact this is unlikely to be available for nothing. The only product
> I know of where this information can be easily derived is the (UK
> only) Royal Mail PAF, and that's rather expensive. I suppose you might
> be able to download an entire street gazetteer and extract all the
> streets in a particular city. That would be expensive in terms of time.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en.