logo separator

[mkgmap-dev] mkgmap in NYC

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Oct 20 08:41:20 BST 2014

Hi Brian,

I don't think that it is possible to get access to the alt_name [1], but it should
be possible to specify rules. I am not good with this, so maybe someone else here can help?
Maybe you can contact Ben Konrath directly, he contributed many of these rules.

[1] This is because we use so called "precompiled boundaries", and changing them like that would
require hard coded rules in the source.

From: brianegge at gmail.com
Date: Sat, 18 Oct 2014 10:30:19 -0400
To: mkgmap-dev at lists.mkgmap.org.uk
Subject: Re: [mkgmap-dev] mkgmap in NYC

Hi Gerd,
For NYC, one of the admin levels should be assigned to 'City' (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 AVEBROOKLYN NY
While Nomination has this one:440, 5th Avenue, Park Slope, Brooklyn, Kings County, New York City, New York, 11215, United States of America
For my example, the standard postal address is:311 W 51ST STNEW 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.9778Queens:http://www.openstreetmap.org/relation/369519#map=11/40.6512/-73.8721Brooklyn:http://www.openstreetmap.org/relation/369518#map=12/40.6446/-73.9449Bronx:http://www.openstreetmap.org/relation/2552450#map=12/40.8516/-73.8467Staten Island: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.

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:

mkgmap:admin_level6=New York County,
mkgmap:admin_level5=New York City,
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?


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

I've been using a USA map from 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
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! 

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. 

_______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev_______________________________________________mkgmap-dev mailing listmkgmap-dev at lists.mkgmap.org.ukhttp://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141020/b6cfbf7d/attachment-0001.html>

More information about the mkgmap-dev mailing list