Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #52956
    Abi_Suyoso
    Participant

    Hi All,
    I am not sure if the following question appropriate for this forum.
    I am modifying a legacy rendertheme a bit because I want to display
    car_repair business in my area. Here is the code:

    <rule e=”any” k=”shop” v=”car_repair”>
    <rule e=”any” k=”name” v=”~” >
    <symbol src=”file:../ele_res_LE/s_car_shop.svg” symbol-width=”14dp” zoom-max=”16″ />
    </rule>
    </rule>

    The problem is that this will show every brand cars on the map.
    If I want to show a certain car service center,
    let us say “Tesla”, on the map how can I do that?

    Thank you.

    #52959
    Abi_Suyoso
    Participant

    Adding information to the above question. I’ll give a more
    specific example what I’ve done. Since Tesla is not available
    in my area then I’ve chosen a Japan car company “Honda”
    as an example. The following line is what I have:

    <rule e=”any” k=”name” v=”*Honda*” >

    but not producing any result. However, I know there are
    several Honda service centers in the area.

    #52961
    Avatar photoJohnPercy
    Participant

    Unfortunately Mapsforge has very limited support for variables, so you can’t set a rule like that. I think you can’t even set the rule to match just Tesla.

    However once you have the map displayed you can search the poi database. The example below is from Locus but you can get similar results from other apps.
    Screenshot_20230212-083311
    Screenshot_20230212-083227
    The search would find any car repair shop with Tesla in the name.

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    2 users thanked author for this post.
    #52964
    Avatar photoJohnPercy
    Participant

    PS It also depends on how thoroughly the area has been mapped. Trying a search for Honda locally returned very few results.

    Screenshot_20230212-084309

    Voluntary and Velocity themes - https://voluntary.nichesite.org

    1 user thanked author for this post.
    #52982
    Abi_Suyoso
    Participant

    Thank you John. I will use your suggestion.
    Maybe in future releases, Mapsforge will provide more capability
    for accessing variables.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.