logo separator

[mkgmap-dev] mkgmap in NYC

From Brian Egge brianegge at gmail.com on Sat Oct 18 15:30:19 BST 2014

Hi Gerd,

For NYC, one of the admin levels should be assigned to 'City' (http://wiki.openstreetmap.org/wiki/United_States_admin_level <http://wiki.openstreetmap.org/wiki/United_States_admin_level>). NYC is a special case in the United States, and it's often even confusing to find addresses in the Garmin database. 

NYC is composed of five borough's, and it's the borough that's used on standard addresses. For Bronx, Brooklyn and Staten Island people will use those borough names for their city. The exceptions are the borough of Manhattan, which for addressing purposes in simply 'New York', and Queens which uses various town names like Astoria.  For example, you may live in Park Slope, which is a neighborhood in Brooklyn, but your postal 'city' will be Brooklyn. 

The postal service has this address:
440 5TH AVE
BROOKLYN NY

While Nomination has this one:
440, 5th Avenue, Park Slope, Brooklyn, Kings County, New York City, New York, 11215, United States of America <http://www.openstreetmap.org/way/248237344>

For my example, the standard postal address is:
311 W 51ST ST
NEW YORK NY

I see what you mean about the styles for mkgmap. Since it's not using the admin levels, it appears to be searching for the nearest city center, which is in a different state, and is completely wrong. 

I would guess the rule should be:
For anything in mkgmap:admin_level5=New York City, then the city should be the alt_name of admin_level6. 

Manhattan:
http://www.openstreetmap.org/relation/2552485#map=12/40.7812/-73.9778 <http://www.openstreetmap.org/relation/2552485#map=12/40.7812/-73.9778>
Queens:
http://www.openstreetmap.org/relation/369519#map=11/40.6512/-73.8721 <http://www.openstreetmap.org/relation/369519#map=11/40.6512/-73.8721>
Brooklyn:
http://www.openstreetmap.org/relation/369518#map=12/40.6446/-73.9449 <http://www.openstreetmap.org/relation/369518#map=12/40.6446/-73.9449>
Bronx:
http://www.openstreetmap.org/relation/2552450#map=12/40.8516/-73.8467 <http://www.openstreetmap.org/relation/2552450#map=12/40.8516/-73.8467>
Staten Island:
http://www.openstreetmap.org/relation/962876 <http://www.openstreetmap.org/relation/962876>

Is it possible to configure such a rule? If not, we should match on admin_level5 is a city name has not been set. 

I don't think I have the resources at home to load/run mkgmap, but I'm happy to test it.

Thanks,
Brian


> On Oct 18, 2014, at 5:11 AM, Gerd Petermann <gpetermann_muenchen at hotmail.com> wrote:
> 
> Hi Brian,
> 
> if I got that right, the problem is in the style rules. I don't know the rules that are used
> for your map (provided by Ben Konrath), but the default style doesn't assign mkgmap:city
> for the way with the id 265329468, and the way itself also doesn't contain the information.
> 
> These are the tags which I see before style processing using a bounds file dated 2014-06-13:
> 
> addr:housenumber=311,
> mkgmap:admin_level6=New York County,
> mkgmap:admin_level5=New York City,
> mkgmap:admin_level2=USA,
> addr:postcode=10019,
> building=yes,
> addr:street=West 51st Street,
> mkgmap:admin_level4=New York
> 
> I see no rule in the default styles' address rules which handles this special case.
> 
> I am not familiar with addresses in USA, so I don't know if only New York is special?
> 
> Gerd
> 
> From: brianegge at gmail.com
> Date: Fri, 17 Oct 2014 16:14:49 -0400
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: [mkgmap-dev] mkgmap in NYC
> 
> Hi,
> 
> I've been using a USA map from http://www.openmapchest.org/maps/united-states <http://www.openmapchest.org/maps/united-states> on my Garmin Nuvi 1450. In Connecticut it works quite well, but I drove into NYC yesterday and it couldn't find a single address.
> 
> I was trying to find: 311 W 51 St. Nomination shows the address as:
> 
> 	• House 311, West 51st Street, Midtown West, Manhattan, New York County, New York City, New York, 10019, United States of America
> 
> http://www.openstreetmap.org/way/265329468 <http://www.openstreetmap.org/way/265329468>
> 
> I tried finding it in both "New York" and "New York City". Manhattan and Midtown West are not listed as cities. I even tried the intersection search and nothing came up. NYC has a near complete set of street addresses, so I expected I would have good results using OSM data. 
> 
> I know the boundaries of NYC can be challenging at time, because the city has five boroughs, lots of neighborhoods and a ton of data. Today, I navigated to the approximate location on the GPS, and it decided the location was in Weehawken, NJ., (which is just across the Hudson). On my GPS, I did a reverse search, and it showed the address being in New Jersey! 
> 
> 
> <IMG_3891.jpeg>
> 
> I didn't build the maps myself, and I don't know how the splitter works. Clearly Nomination has the address figured out correctly, but mkgmap does not. 
> 
> Brian
> 
> 
> _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk <mailto:mkgmap-dev at lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev <http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev>_______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk <mailto:mkgmap-dev at lists.mkgmap.org.uk>
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev <http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141018/27f84019/attachment.html>


More information about the mkgmap-dev mailing list